shellvar
: Manages variables in simple shell scripts.
Manages variables in simple shell scripts.
The following properties are available in the shellvar
type.
Text to be stored in a comment immediately above the entry. It will be automatically prepended with the name of the variable in order for the provider to know whether it controls the comment or not.
Valid values: present
, absent
, unset
, exported
Create or remove the shellvar entry
Default value: present
Value to change the variable to.
The following parameters are available in the shellvar
type.
Valid values: false
, true
Whether to add to existing array values or replace all values.
Default value: false
Valid values: auto
, string
, array
Type of array mapping to use, defaults to auto
.
auto
will detect the current type, and default tostring
string
will render the array as a string and use space-separated valuesarray
will render the array as a shell array
Default value: auto
namevar
The default namevar
The specific backend to use for this shellvar
resource. You will seldom need to specify this --- Puppet will usually
discover the appropriate provider for your platform.
Valid values: auto
, double
, single
, none
, false
, true
Quoting method to use, defaults to auto
.
auto
will quote only if necessary, leaving existing quotes as-isdouble
andsingle
will always quotesnone
will remove quotes, which may result in save failures
Default value: auto
namevar
The file in which to store the variable.
Valid values: true
, false
Whether to remove commented value when found.
Default value: false
namevar
The name of the variable, e.g. OPTIONS