Open drrk opened 9 years ago
The java cookbook let you install 2 flavor of java. openjdk and the proprietary one. Which one you think we should include?
Because of the wealth of config options for java, most cookbooks seem to leave it out and just document the need to add it. I would rather we did this rather than be opinionated about overrides
Ideologically I'm in agreement with @patcon on this fortunately or unfortunately. While our testing framework will provide its own defaults to be usable in enough capacity to run the tests, I don't think we should dictate or want to wrap the Java configuration for everyone's environment. If we were to go down that route though, I'd suggest something like a "manage_java" attribute, separate java recipe, and new java attributes.
berksfile: cookbook 'java'
recipe:
node.default['java']['jdk_version'] = '8' ENV['JAVA_HOME'] = '/usr/lib/jvm/java-8-openjdk-amd64' include_recipe 'java::default'
Even though the cookbook depends on the java cookbook, and the testing recipe include the java cookbook default recipe, the main cookbook doesn't install java, but depends on java to be installed.