mirror of
https://github.com/saltstack-formulas/sudoers-formula.git
synced 2026-10-06 21:07:10 +02:00
init commit, create lookup table
This commit is contained in:
1 parent
9e23258c9a
commit
ebb103d6a4
2 files changed
+18
-1
No files matched your search
@@ -1,3 +1,4 @@
|
||||
{% from "sudoers/map.jinja" import group_maps with context %}
|
||||
{%- if (not included) %}
|
||||
{%- set sudoers = pillar.get('sudoers', {}) %}
|
||||
{%- if grains['os_family'] == 'Debian' %}
|
||||
@@ -91,9 +92,14 @@ Runas_Alias {{ name }} = {{ ",".join(runas) }}
|
||||
# Group privilege specification
|
||||
{%- for group,specs in groups.items() %}
|
||||
{%- for spec in specs %}
|
||||
%{{ group }} {{ spec }}
|
||||
{{ group }} {{ spec }}
|
||||
{%- endfor %}
|
||||
{%- endfor %}
|
||||
{% for unix_group in in salt['pillar.get']('group_map:core', {}).keys() %}
|
||||
{% if unix_group in group_map.keys() %}
|
||||
{{ unix_group }} {{ group_map.unix_group }}
|
||||
{% else %}
|
||||
{{ unix_group }} (( group_map.default }}
|
||||
|
||||
{% if includedir %}
|
||||
## Read drop-in files from /etc/sudoers.d
|
||||
|
||||
Reference in new issue
Block a user