- From: Indra k <
>
- To: "
" <
>
- Subject: [chef]
- Date: Wed, 6 Aug 2014 20:51:18 +0800
Hi all,
When am running java cookbook it shows the below error:
Chef::Exceptions::Env: env[Path] (java-SE::default line 53) had an error: Chef::Exceptions::Env: Cannot modify env[Path] - key does not exist!
my code is here:
env "JAVA_HOME" do
value node['java']['java_home']
not_if { ENV["JAVA_HOME"].include?node['java']['java_home'] }
end
#add java value in path variable
env "Path" do
action :modify
delim ::File::PATH_SEPARATOR
value node['java']['path']
not_if { ENV["Path"].include?node['java']['path'] }
end
Thanks,
Indra
- [chef], Indra k, 08/06/2014
- <Possible follow-up(s)>
- [chef], Indra k, 08/06/2014
Archive powered by MHonArc 2.6.16.