2020-07-10 00:58:55 +02:00
|
|
|
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
2020-07-30 14:10:22 +02:00
|
|
|
|
2020-07-10 00:58:55 +02:00
|
|
|
{%- from "sudo/map.jinja" import sudo with context %}
|
|
|
|
|
|
|
|
{%- if sudo.config.defaults is defined -%}
|
|
|
|
{%- for default in sudo.config.defaults %}
|
|
|
|
Defaults {{ default }}
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
|
|
|
|
|
|
|
{%- if sudo.config.acls is defined -%}
|
|
|
|
{%- for key, acl in sudo.config.acls.items() %}
|
|
|
|
{% if acl.group %}%{% endif %}{{ key }} {{ acl.host|default('ALL') }}=({{ acl.who|default('ALL') }}) {{ acl.command|default('ALL') }}
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
|
|
|
|
|
|
|
#includedir /etc/sudoers.d
|