Skip to content

Commit

Permalink
Correct cookbook files resource (#4212)
Browse files Browse the repository at this point in the history
* Correct cookbook files resource

Signed-off-by: Ian Maddaus <[email protected]>

* Lint

Signed-off-by: Ian Maddaus <[email protected]>

---------

Signed-off-by: Ian Maddaus <[email protected]>
  • Loading branch information
IanMadd authored Nov 28, 2023
1 parent e578424 commit 77dbe98
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion data/infra/resources/cookbook_file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ resource: cookbook_file
resource_description_list:
- shortcode: resource_cookbook_file_summary.md
- markdown: |-
During a Chef Infra Client run, the checksum for each local file is calculated and then compared against the checksum for the same file as it currently exists in the cookbook on the Chef Infra Server. A file is not transferred when the checksums match. Only files that require an update are transferred from the Chef Infra Server to a node.
During a Chef Infra Client run, the checksum for each local file is calculated and then compared against the checksum for the same file as it currently exists in the cookbook on the Chef Infra Server. A file isn't transferred when the checksums match. Only files that require an update are transferred from the Chef Infra Server to a node.
syntax_description: "A **cookbook_file** resource block manages files by using files\
\ that\nexist within a cookbook's `/files` directory. For example, to write the\n\
home page for an Apache website:\n\n```ruby\ncookbook_file '/var/www/customers/public_html/index.php'\
\ do\n source 'index.php'\n owner 'web_admin'\n group 'web_admin'\n mode '0755'\n\
\ action :create\nend\n```"
syntax_full_code_block: |-
cookbook_file 'name' do
atomic_update true, false
Expand Down

0 comments on commit 77dbe98

Please sign in to comment.