- From: Manoj Thakkar <
>
- To: "
" <
>
- Subject: [chef] simple read a variable issue
- Date: Tue, 29 Oct 2013 13:17:37 -0700
Hey,
i have been trying to fix this for almost 30 minutes now , thought i shall better ask, please looks at the code snippet below, I am not able to access this simple variable what am i doing wrong ? please advise.
cookbook_file "/local_app/account-rest.properties" do
source "account-rest.properties"
mode 0777
owner "deploy"
group "deploy"
end
ruby_block "acc-deploy-host" do
block do
node.default["acc-deploy"] = `cat /local_app/account-rest.properties | grep -i "#{host}" | cut -d":" -f2 `
puts "value is #{node["acc-deploy"]}"
end
action :create
end
node[:acc_deploy].each do |x| ----- this does not work
puts #x
end
- [chef] simple read a variable issue, Manoj Thakkar, 10/29/2013
Archive powered by MHonArc 2.6.16.