mirror of
https://github.com/saltstack-formulas/sudoers-formula.git
synced 2024-11-28 00:48:12 +01:00
template cleanup
This commit is contained in:
parent
7ae89c11ec
commit
3db435dcdd
@ -17,34 +17,34 @@ Defaults {{ default }}
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
# Host alias specification
|
# Host alias specification
|
||||||
{% for name,hosts in host_aliases.items() %}
|
{%- for name,hosts in host_aliases.items() %}
|
||||||
Host_Alias {{ name }} = {{ ",".join(hosts) }}
|
Host_Alias {{ name }} = {{ ",".join(hosts) }}
|
||||||
{% endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
# User alias specification
|
# User alias specification
|
||||||
{% for name,users in user_aliases.items() %}
|
{%- for name,users in user_aliases.items() %}
|
||||||
User_Alias {{ name }} = {{ ",".join(users) }}
|
User_Alias {{ name }} = {{ ",".join(users) }}
|
||||||
{% endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
# Cmnd alias specification
|
# Cmnd alias specification
|
||||||
{% for name,commands in command_aliases.items() %}
|
{%- for name,commands in command_aliases.items() %}
|
||||||
Cmnd_Alias {{ name }} = {{ ",".join(commands) }}
|
Cmnd_Alias {{ name }} = {{ ",".join(commands) }}
|
||||||
{% endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
# Runas alias specification
|
# Runas alias specification
|
||||||
{% for name,runas in runas_aliases.items() %}
|
{%- for name,runas in runas_aliases.items() %}
|
||||||
Runas_Alias {{ name }} = {{ ",".join(runas) }}
|
Runas_Alias {{ name }} = {{ ",".join(runas) }}
|
||||||
{% endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
# User privilege specification
|
# User privilege specification
|
||||||
{% for user,spec in users.items() %}
|
{%- for user,spec in users.items() %}
|
||||||
{{ user }} {{ spec }}
|
{{ user }} {{ spec }}
|
||||||
{% endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
# Group privilege specification
|
# Group privilege specification
|
||||||
{% for group,spec in groups.items() %}
|
{%- for group,spec in groups.items() %}
|
||||||
%{{ group }} {{ spec }}
|
%{{ group }} {{ spec }}
|
||||||
{% endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
{% if includedir %}
|
{% if includedir %}
|
||||||
includedir {{ includedir }}
|
includedir {{ includedir }}
|
||||||
|
Loading…
Reference in New Issue
Block a user