0
0
mirror of https://github.com/saltstack-formulas/sudoers-formula.git synced 2024-11-28 00:48:12 +01:00
sudoers-formula/sudoers/init.sls
2016-03-09 15:03:56 -05:00

19 lines
474 B
Plaintext

{% 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
- check_cmd: {{ sudoers.get('exec-prefix', '/usr/sbin') }}/visudo -c -f
- context:
included: False
- require:
- pkg: sudo