Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
fixes update-alternatives for openjdk installs #95
I'm not sure how others are using this cookbook, but it's currently in attribute hell for me. The only way I can actually get an openjdk 7 install is if I run chef-client and supply it json on the command line specifically for java. This is obviously not ideal, and if you want to use this cookbook in something like AWS Opsworks you might have issue overriding versions inside recipes, etc.
These changes fix that, for the openjdk recipe.
The latest change is actually the main issue for me. I want to be able to do
in my recipe, and have it set all of the parameters that reference the jdk_version in the attributes/default.rb file.
However, that file gets completely filled out AT recipe compile time. This means all the variables referencing the jdk_version have defaults, and they all point to 6. Overriding the jdk_version does indeed override that config parameter, but only that. The jdk_version change isn't reflected in the other parameters, and it forces the user of the cookbook to override them all manually