mirror of
https://github.com/saltstack-formulas/sudoers-formula.git
synced 2026-07-24 03:06:26 +02:00
allow for multiple lines for the same user or group
This commit is contained in:
@@ -82,13 +82,17 @@ Runas_Alias {{ name }} = {{ ",".join(runas) }}
|
||||
{%- endfor %}
|
||||
|
||||
# User privilege specification
|
||||
{%- for user,spec in users.items() %}
|
||||
{%- for user,specs in users.items() %}
|
||||
{%- for spec in specs %}
|
||||
{{ user }} {{ spec }}
|
||||
{%- endfor %}
|
||||
{%- endfor %}
|
||||
|
||||
# Group privilege specification
|
||||
{%- for group,spec in groups.items() %}
|
||||
{%- for group,specs in groups.items() %}
|
||||
{%- for spec in specs %}
|
||||
%{{ group }} {{ spec }}
|
||||
{%- endfor %}
|
||||
{%- endfor %}
|
||||
|
||||
{% if includedir %}
|
||||
|
||||
Reference in New Issue
Block a user