paulbsd-salt/states/sudo/templates/sudoers.j2

17 lines
536 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
{%- 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 %}
2021-09-25 16:09:00 +02:00
#includedir /etc/sudoers.d