0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2024-11-28 00:48:22 +01:00

Display "managed by Salt" header in user sudoers files

This commit is contained in:
Imran Iqbal 2015-12-30 03:31:57 +00:00
parent 4b840e646c
commit b94514529d

View File

@ -384,6 +384,11 @@ users_{{ users.sudoers_dir }}/{{ name }}:
{%- endfor %}
{%- endif %}
{%- if 'sudo_rules' in user %}
########################################################################
# File managed by Salt (users-formula).
# Your changes will be overwritten.
########################################################################
#
{%- for rule in user['sudo_rules'] %}
{{ name }} {{ rule }}
{%- endfor %}