1
0
Fork 0
mirror of synced 2024-11-16 13:45:35 -05:00
formula-sudoers/sudoers/init.sls
2019-05-06 09:09:55 -07:00

21 lines
556 B
Text

{% from "sudoers/map.jinja" import sudoers with context %}
# our list of plos core active directory groups
{%- set ad_groups = salt['pillar.get']('group_map:core').keys() %}
sudo:
pkg.installed:
- name: {{ sudoers.pkg }}
{{ sudoers.get('config-path', '/etc') }}/sudoers:
file.managed:
- user: root
- group: {{ sudoers.get('group', 'root') }}
- mode: 440
- template: jinja
- source: salt://sudoers/files/sudoers
- context:
included: False
ad_groups: {{ ad_groups|tojson }}
- require:
- pkg: sudo