Resource Type: yaml_settings
- Defined in:
- lib/puppet/type/yaml_settings.rb
- Providers:
-
yaml_settings_provider
Overview
The path to the properties file to manage. Either this should file should already exist, or the source parameter needs to be specified.
Properties
-
values
(defaults to: absent)
The portions to change and their new values. This should be a hash. The subtree to change is specified in the form:
<key 1>/<key 2>/.../<key n>where <key x> admits three variants:
* the plain contents of the string key, as long as they do not start with : or ' and do not contain / * '<contents>', to represent a string key that contains the characters mentioned above. Single quotes must be doubled to have literal value. * :'<contents>', likewise, but the value will be a symbol.
Parameters
-
allow_new_file
(defaults to: true)
Whether it should be allowed to create a new target file
Supported values:- true
- false
-
allow_new_values
(defaults to: true)
Whether it should be allowed to specify values for non-existing tree portions
Supported values:- true
- false
-
provider
The specific backend to use for this ‘yaml_settings` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.
-
source
The file from which to load the current settings. If unspecified, it defaults to the target file.
-
target
The path to the properties file to manage. Either this should file should already exist, or the source parameter needs to be specified.
-
user
The user with which to make the changes