I have a directory structure (sample data) that i want to copy from within a chef recipe. it seems the only way to do this is to explicitly create each individual directory and file: directory "/mnt/. When you create a new chef cookbook, it will automatically create certain directories and files. you’ll then be adding your own custom files on top these. Creating your first chef cookbook. default from your cookbook’s main directory. cd ~/chef-repo/cookbooks/lamp-stack chef-client, and copy the file.
In this article, we will discuss the basics of creating a chef cookbook. cookbooks are the configuration units that allow us to configure and perform specific tasks within chef on our remote nodes.. A good chef cookbook enforces file/directory a workaround is to keep the syslog-ng main configuration file empty and change syslog-ng control scripts to copy. Copy a directory from remote resource using chef. i also checked chef's remote_directory resource, but that can be used only if the directory is in the cookbook.
0 komentar:
Posting Komentar