2015-01-01 17:14:56 -05:00
|
|
|
{% from "sudoers/map.jinja" import sudoers with context %}
|
2017-02-14 19:30:14 -05:00
|
|
|
##{%- set ad_groups = pillar.get('group_map:core', {}) %}
|
|
|
|
{%- set ad_groups = salt['pillar.get']('group_map:core') %}
|
2013-08-20 17:32:58 -04:00
|
|
|
|
|
|
|
sudo:
|
|
|
|
pkg.installed:
|
2015-01-01 17:19:47 -05:00
|
|
|
- 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
|
2014-02-09 12:32:22 -05:00
|
|
|
- context:
|
|
|
|
included: False
|
2017-02-14 19:30:14 -05:00
|
|
|
ad_groups: {{ ad_groups }}
|
2013-08-20 17:32:58 -04:00
|
|
|
- require:
|
|
|
|
- pkg: sudo
|