Hi,
I had a cookbook with multiple recipes, in one of them having resources like
Path /root/chef-repo/cookbooks/rollback/recipes/default.rb
ruby_block "Create a directry for backup" do
block do
FileUtils.mkdir node['backup_path'] unless Dir.exists? node['backup_path']
$s=FileUtils.mkdir node['new_directory']
puts "directory#{$s}"
end
end
I need to pass this global variable $s to another chef resources in another
recipe like Path /root/chef-repo/cookbooks/rollback/recipes/xxxx.rb, if is is
possible how can i get that value during at run time or in any other way?
Thanks in advance,
Ganesan.A
Archive powered by MHonArc 2.6.16.