Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to install Java 7 on Ubuntu with the opscode java community cookbook.

Java 6 seems to be the option no matter what incantation I make:

[2013-09-24T00:24:32+00:00] INFO: Processing package[openjdk-6-jdk] action install (java::openjdk line 49)

These are the relevant details of my wrapper:

#berks
cookbook "java", :git => "git@github.com:opscode-cookbooks/java.git"

#recipe
node.set["java"]["install_flavor"] = "openjdk"
node.set["java"]["jdk_version"] = "7"

include_recipe "java::default"

Any help would be appreciated.

share|improve this question

1 Answer 1

I couldn't find a way of doing this without putting an override in the role. I added this:

override_attributes \
  :java => {
        :jdk_version => "7"
  }

I think the issue is that once the overrides are executed in the recipe it is too late.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.