A very simple cookbook to deploy files placed on the files section of the cookbook and set permissions.
If the file doesn't exist, it is created. If it already exists, it has its permissions set.
If the directory doesn't exist, by default it will be created with the same file permissions and ownership. If it already exists, nothing is changed.
TODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc.
e.g.
- SandwichOS
- Chef 12.0 or later
toaster
- files needs toaster to brown your bagel.
TODO: List your cookbook attributes here.
e.g.
Key | Type | Description | Default |
---|---|---|---|
['files']['bacon'] | Boolean | whether to include bacon | true |
TODO: Write usage instructions for each cookbook.
e.g.
Just include files
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[files]"
]
}
TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.
e.g.
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: TODO: List authors