The behavior is different depending on the platform. Umask on a system is '022', Chef Infra Client uses the default The file is to be created to the mask value.
Value of '0777' and then applies the umask for the system on which :create action is specified, Chef Infra Client assumes a mask If mode is not specified, the file does not exist, and the If mode is not specifiedĪnd if the file already exists, the existing mode on the file is mode Ruby Type: Integer, StringĪ quoted 3-5 character string that defines the octal mode. Value will be changed to false in a future version setting thisĮxplicitly to true or false suppresses this warning. The default behavior is true but emits a warning that the default True, Chef will follow the symlink and will manage the permissions Manage the symlink’s permissions or will replace the symlink with a When this value is set to false, Chef Infra Client will manage_symlink_source Ruby Type: true, false | Default Value: trueĬhange the behavior of the file resource if it is pointed at a inherits Ruby Type: true, false | Default Value: true Remain unchanged and new group assignments use the default POSIX Including fully qualified group names such as domain\group If this value is not specified, existing groups group Ruby Type: Integer, StringĪ string or ID that identifies the group owner by group name or SID, Set to false for Chef Infra Client to raise an error. Set to true for Chef Infra Client to delete the non-file target and replace it with the specified file. For example, when a target file is actually a symlink.
How Chef Infra Client handles certain situations when the target file turns out not to be a file. force_unlink Ruby Type: true, false | Default Value: false The default behavior will not modify content. The contents of this property replace any previous content when this property has something other than the default value. content Ruby Type: StringĪ string that is written to the file. If the checksum does not match, the file is not used. Use to ensure that a specific file is used. Set to false to prevent backups from being kept.
Web app chef windows#
The number of backups to be kept in /var/chef/backup (for UNIX- and Linux-based platforms) or C:/chef/backup (for the Microsoft Windows platform). backup Ruby Type: Integer, false | Default Value: 5 This setting overrides file_atomic_update, which is a global setting found in the client.rb file. Set to false for non-atomic file updates. Perform atomic file updates on a per-resource basis. Otherwise default to the client.rb 'file_atomic_update' config value. The file resource has the following properties: atomic_update Ruby Type: true, false | Default Value: False if modifying /etc/hosts, /etc/hostname, or /etc/nf within Docker containers. This updates the access (atime) and file modification (mtime) times for a file. Or is queued up to run at the end of a Chef Infra Client run. Once notified, this resource block either runs immediately :nothing This resource block does not act unless notified by another resource to :create_if_missing Create a file only if the file does not exist.
Web app chef update#
If a file already exists (but does not match), update that file to match. The file resource has the following actions: :create Default. See “Properties” section below for more information about all of the properties that may be used with this resource. atomic_update, backup, checksum, content, force_unlink, group, inherits, manage_symlink_source, mode, owner, path, rights, sensitive, and verify are properties of this resource, with the Ruby type shown.action identifies which steps Chef Infra Client will take to bring the node into the desired state.