0
0
mirror of https://github.com/saltstack-formulas/sudoers-formula.git synced 2025-12-30 19:44:13 +01:00

Merge 7ee2569b451d1bd8c866b21416cb77066c14f6ae into ee93b6928d845fd8c18fb38f18ee45602762b1bc

This commit is contained in:
Javier Bértoli 2022-08-18 08:30:42 +02:00 committed by GitHub
commit 043877bc4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,24 +84,24 @@ Cmnd_Alias {{ name }} = {{ ",".join(commands) }}
Runas_Alias {{ name }} = {{ ",".join(runas) }}
{%- endfor %}
# User privilege specification
{%- for user,specs in users|dictsort %}
# Netgroup privilege specification
{%- for netgroup,specs in netgroups.items() %}
{%- for spec in specs %}
{{ user }} {{ spec }}
+{{ netgroup }} {{ spec }}
{%- endfor %}
{%- endfor %}
# Group privilege specification
{%- for group,specs in groups|dictsort %}
{%- for group,specs in groups.items() %}
{%- for spec in specs %}
%{{ group }} {{ spec }}
{%- endfor %}
{%- endfor %}
# Netgroup privilege specification
{%- for netgroup,specs in netgroups.items() %}
# User privilege specification
{%- for user,specs in users.items() %}
{%- for spec in specs %}
+{{ netgroup }} {{ spec }}
{{ user }} {{ spec }}
{%- endfor %}
{%- endfor %}