0
0
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:
Kenneth Wilke 2013-08-20 16:54:21 -05:00
parent 7ae89c11ec
commit 3db435dcdd

View File

@ -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 }}