← Back to Cfengine Reference
Within a files: section you can reference the following body parts and items. Body parts (i.e., compound bodies) are links that open to show all of their components.
Directive | Type | Description |
---|---|---|
changes | body | Determine how changes are detected to the applicable file(s). |
copy_from | body | Copy file(s) locally or from a server. |
create | menu item true/false | Whether to create the file.files: "/path/plain_file" create => "true"; |
delete | body | Delete local file(s). |
depth_search | body | Controls recursion, exclusions, &c. |
edit_line | bundle | Specifications of how to edit a file. |
edit_xml | bundle | On-line ref manual has no data on this. |
edit_defaults | body | Sets options to apply to editing. |
file_select | body | Specifications for choosing sets of files. |
link_from | body | Create a symbolic link to a file |
move_obstructions | menu option true/false | Whether to move any target item that is blocking an operation. |
pathtype | menu option literal/regex/guess | Is the path spec literal or a regex? Default is guess, but specifying will reduce CPU cycles. |
perms | body | Specify permission attributes of a file. |
rename | body | Parameters controlling the renaming of a file. |
repository | string | Name of a repository for versioning. files: "/path/file" copy_from => source, repository => "/var/cfengine/repository"; |
touch | menu option true/false | Touch time stamp. files: "/path/file" touch => "true"; |
transformer | string | A command to execute to transform the file to something else (e.g., Sendmail newaliases command is used to transform the aliases file after it is edited). |