chef-stash icon indicating copy to clipboard operation
chef-stash copied to clipboard

Recipe doesn't install java

Open drrk opened this issue 10 years ago • 4 comments

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.

drrk avatar May 26 '15 16:05 drrk

The java cookbook let you install 2 flavor of java. openjdk and the proprietary one. Which one you think we should include?

linc01n avatar May 28 '15 03:05 linc01n

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

patcon avatar Jun 20 '15 05:06 patcon

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.

bflad avatar Jul 12 '15 04:07 bflad

berksfile: cookbook 'java'

recipe:

need to do java install, it was assumed in supermarket cookbook

node.default['java']['jdk_version'] = '8' ENV['JAVA_HOME'] = '/usr/lib/jvm/java-8-openjdk-amd64' include_recipe 'java::default'

cloneluke avatar Jun 16 '17 13:06 cloneluke