1
0
Fork 0
mirror of synced 2024-12-22 22:48:56 -05:00
formula-sudoers/sudoers/files/sudoers

44 lines
1,019 B
Text
Raw Normal View History

2013-08-20 17:32:58 -04:00
{% set sudoers = pillar.get('sudoers', {}) %}
{% set defaults = sudoers.get('defaults', []) %}
{% set aliases = sudoers.get('aliases', {}) %}
{% set host_aliases = aliases.get('host', []) %}
{% set user_aliases = aliases.get('user', []) %}
{% set cmnd_aliases = aliases.get('commands', []) %}
{% set runas_aliases = aliases.get('runas', []) %}
{% set users = sudoers.get('users', {}) %}
{% set groups = sudoers.get('groups', {}) %}
{% set includedir = sudoers.get('includedir', None) %}
#
# This file is managed by salt
#
{% for default in defaults -%}
Defaults {{ default }}
{%- endfor %}
# Host alias specification
{% for default in defaults -%}
Defaults {{ default }}
{%- endfor %}
# User alias specification
{{ user_aliases }}
# Cmnd alias specification
{{ cmnd_aliases }}
# Runas alias specification
{{ runas_aliases }}
# User privilege specification
{{ users }}
# Group privilege specification
{{ groups }}
2013-08-20 17:35:57 -04:00
{% if includedir %}
2013-08-20 17:32:58 -04:00
includedir {{ includedir }}
{% else %}
#includedir /etc/sudoers.d
{% endif %}