(Re-)enable pillar users-formula:lookuptags/v0.45.0
--------------- | --------------- | ||||
Permits the abitrary management of files. See pillar.example for configuration details. | Permits the abitrary management of files. See pillar.example for configuration details. | ||||
Overriding default values | |||||
========================= | |||||
In order to separate actual user account definitions from configuration the pillar ``users-formula`` was introduced: | |||||
.. code-block:: yaml | |||||
users: | |||||
myuser: | |||||
# stuff | |||||
users-formula: | |||||
lookup: | |||||
root_group: toor | |||||
shell: '/bin/zsh' |
users-formula: | |||||
lookup: # override the defauls in map.jinja | |||||
root_group: root | |||||
users: | users: | ||||
## Minimal required pillar values | ## Minimal required pillar values | ||||
auser: | auser: |
'sudo_package': 'sudo', | 'sudo_package': 'sudo', | ||||
'googleauth_package': 'libpam-google-authenticator', | 'googleauth_package': 'libpam-google-authenticator', | ||||
}, | }, | ||||
}, merge=salt['pillar.get']('users:lookup')) %} | |||||
}, merge=salt['pillar.get']('users-formula:lookup')) %} |