Display "managed by Salt" header in user sudoers files
This commit is contained in:
parent
4b840e646c
commit
b94514529d
|
@ -384,6 +384,11 @@ users_{{ users.sudoers_dir }}/{{ name }}:
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if 'sudo_rules' in user %}
|
{%- if 'sudo_rules' in user %}
|
||||||
|
########################################################################
|
||||||
|
# File managed by Salt (users-formula).
|
||||||
|
# Your changes will be overwritten.
|
||||||
|
########################################################################
|
||||||
|
#
|
||||||
{%- for rule in user['sudo_rules'] %}
|
{%- for rule in user['sudo_rules'] %}
|
||||||
{{ name }} {{ rule }}
|
{{ name }} {{ rule }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
Loading…
Reference in New Issue