Default variable details
Some of debops.libuser default variables have more extensive configuration than
simple strings or lists, here you can find documentation and examples for them.
libuser__configuration
Examples
See the libuser__original_configuration variable for the original
contents of the /etc/libuser.conf file and how they are represented in
the role configuration.
Syntax
Each entry in the list is a YAML dictionary that describes the configuration file in the
/etc/libuser.conf, using specific parameters:
nameRequired. This parameter defines the option name, and it needs to be unique in a given configuration file. Parameters from different options lists with the same
nameare merged together when the configuration entries are merged.optionsOptional. A YAML list of libuser configuration options defined in the configuration file. The
optionsparameters from different configuration entries are merged together, therefore it's easy to modify specific parameters without the need to copy the entire value to the inventory.Each element of the options list is a YAML dictionary with specific parameters:
nameRequired for the main options. The Name of the libuser option to add.
optionOptional. Override the
nameparameter to allow for multiple configuration options with the same parameter.stateOptional. If not specified or
present, the entry will be added in the configuration file. Ifabsent, the entry will be removed from the configuration file. Ifcomment, the entry will be included in the configuration file, but commented out.commentOptional. String or a YAML text block with a comment added to a given configuration entry.
separatorOptional, boolean. If
True, add an empty line before the configuration parameter, useful for visually separating configuration options.valueOptional for main options. If specified, set a value of a given option.