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

22 lines
556 B
Text
Raw Normal View History

2015-01-01 17:14:56 -05:00
{% 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() %}
2013-08-20 17:32:58 -04:00
sudo:
pkg.installed:
- name: {{ sudoers.pkg }}
2013-08-20 17:32:58 -04:00
2015-01-01 17:14:56 -05:00
{{ sudoers.get('config-path', '/etc') }}/sudoers:
2013-08-20 17:32:58 -04:00
file.managed:
- user: root
2015-01-01 17:14:56 -05:00
- group: {{ sudoers.get('group', 'root') }}
2013-08-20 17:32:58 -04:00
- mode: 440
- template: jinja
- source: salt://sudoers/files/sudoers
- context:
included: False
2019-05-06 12:09:55 -04:00
ad_groups: {{ ad_groups|tojson }}
2013-08-20 17:32:58 -04:00
- require:
- pkg: sudo