HI, this is what my code looks like , somehow the #{host} below is not replaced correctly in the grep,
any clues why ?ruby_block "acc-deploy-host" do
block do
host=`hostname -s`
node.set[:acc_deploy] = `cat /local_app/account-rest.properties | grep -i "#{host}" | cut -d":" -f2 `
puts "value is #{node['acc_deploy']}"endend
ThanksManoj
Archive powered by MHonArc 2.6.16.