override the accept_oracle_download_terms
in, e.g., roles/base.rb
default_attributes(
:java => {
:oracle => {
"accept_oracle_download_terms" => true
}
}
)
http://community.opscode.com/cookbooks/java
On Wednesday, March 19, 2014 at 12:25 PM, Kenneth Barry wrote:
To begin with, I was trying to install oracle jdk7, using the java cookbook.I'm a newb, when I rand into this problem, I moved onto another task I had, setup tomcat. Apparently the tomcat cookbook runs the java install as part of its processes.Either the error is right infront of me, or its in a palce i am not aware of.The node only has the tomcase::default recipe applied. OS is centos 6.5Error below:~]# chef-clientStarting Chef Client, version 11.8.2resolving cookbooks for run list: ["tomcat"]Synchronizing Cookbooks:- openssl- java- tomcatCompiling Cookbooks...[2014-03-19T12:19:35-07:00] WARN: Using java::default instead is recommended.Converging 13 resourcesRecipe: java::set_java_home* ruby_block[set-env-java-home] action run- execute the ruby block set-env-java-home* directory[/etc/profile.d] action create (up to date)* file[/etc/profile.d/jdk.sh] action create (up to date)Recipe: java::oracle* java_ark[jdk] action install[2014-03-19T12:19:35-07:00] FATAL: You must set the attribute node['java']['oracle']['accept_oracle_download_terms'] to true if you want to download directly from the oracle site!================================================================================Error executing action `install` on resource 'java_ark[jdk]'================================================================================SystemExit----------exitCookbook Trace:---------------/var/chef/cache/cookbooks/java/providers/ark.rb:81:in `download_direct_from_oracle'/var/chef/cache/cookbooks/java/providers/ark.rb:115:in `block in class_from_file'Resource Declaration:---------------------# In /var/chef/cache/cookbooks/java/recipes/oracle.rb49: java_ark "jdk" do50: url tarball_url51: default node['java']['set_default']52: checksum tarball_checksum53: app_home java_home54: bin_cmds bin_cmds55: alternatives_priority 106256: action :install57: end58:Compiled Resource:------------------# Declared in /var/chef/cache/cookbooks/java/recipes/oracle.rb:49:in `from_file'java_ark("jdk") doaction [:install]supports {:report=>true, :exception=>true}retries 0retry_delay 2cookbook_name "java"recipe_name "oracle"default truechecksum "764f96c4b078b80adaa5983e75470ff2"app_home "/usr/lib/jvm/java"bin_cmds ["appletviewer", "apt", "ControlPanel", "extcheck", "idlj", "jar", "jarsigner", "java", "javac", "javadoc", "javafxpackager", "javah", "javap", "javaws", "jcmd", "jconsole", "jcontrol", "jdb", "jhat", "jinfo", "jmap", "jps", "jrunscript", "jsadebugd", "jstack", "jstat", "jstatd", "jvisualvm", "keytool", "native2ascii", "orbd", "pack200", "policytool", "rmic", "rmid", "rmiregistry", "schemagen", "serialver", "servertool", "tnameserv", "unpack200", "wsgen", "wsimport", "xjc"]alternatives_priority 1062end[2014-03-19T12:19:35-07:00] ERROR: Running exception handlers[2014-03-19T12:19:35-07:00] ERROR: Exception handlers complete[2014-03-19T12:19:35-07:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.outChef Client failed. 1 resources updated[2014-03-19T12:19:35-07:00] ERROR: java_ark[jdk] (java::oracle line 49) had an error: SystemExit: exit[2014-03-19T12:19:35-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)~]#
Archive powered by MHonArc 2.6.16.