0
我是廚師新手,開始了我的第一課。在沒有特權的情況下運行我的配方時,會拋出異常(我很高興),但也創建了一個空白的'hello.txt'。有沒有誤導這個空白'hello.txt'?即使缺少管理權限也會創建空白文件
hello_recipe.rb
file 'hello.txt' do
content 'Welcome to Chef'
end
>chef-apply hello_recipe.rb #=> chef-client doesn't have administrator privileges...
如何回滾這種變化(即空的文本文件)?
'chef'不需要管理員權限。我得到以下:http://pastebin.com/ykF9swm1 – hek2mgl 2015-02-23 16:04:56