echo testfile> files/default/testfile recipeにはこのように書く。 cookbook_file "/tmp/testfile" do source "testfile" mode "0644" end cookbookをServerにアップし、chef-clientを実行したら ”/tmp/testfile” がコピーされている。 # cat /tmp/testfile testfile 同じ動作は実行されない。 # chef-client INFO: Starting Chef Run (Version 0.9.14) INFO: Storing updated cookbooks/testbook/recipes/default.rb in the cache. INFO: Storing updated cookbooks/testbook/