是否有一种干净的方式来管理通过烹饪书修改搁浅的资源?举例来说,假设我有一个从模板写一个文件,就像这样的食谱资源: template 'C:\dir\somefile.txt' do
source 'somefile.erb'
end
然后我更新菜谱该文件写入到一个不同的地方,像这样: template 'C:\some_different_dir\new_file_location
我已经创建了我的食谱中的红宝石块如下: ruby_block 'load_databag_secret' do
block do
value = data_bag_item("tokens", "masterkey", IO.read("/etc/chef/encrypted_data_bag_secret"))
node.run_state['docker']['p
我有一个样品VagrantFile看起来像以下: Vagrant.configure("2") do |config|
config.vm.box = "bento/centos-6.7"
config.vm.provision :chef_solo do |chef|
chef.add_recipe "build-essential"
end
end