1
0
Fork 0
mirror of synced 2024-11-17 06:35:34 -05:00
formula-sudoers/sudoers/init.sls
2015-01-01 23:14:56 +01:00

17 lines
404 B
Text

{% from "sudoers/map.jinja" import sudoers with context %}
sudo:
pkg.installed:
- name: {{ sudoers.pkgs|json }}
{{ 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