17 lines
398 B
Text
17 lines
398 B
Text
{% from "sudoers/map.jinja" import sudoers with context %}
|
|
|
|
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
|
|
- require:
|
|
- pkg: sudo
|