1
0
Fork 0
mirror of synced 2024-06-15 12:41:09 -04:00
formula-sudoers/sudoers/init.sls
abednarik 24e66ca8bf Remove dashes from variables.
Dashes causes some weird issues while rendering jinja templates.
2017-08-16 09:32:42 -03:00

19 lines
472 B
Plaintext

{% from "sudoers/map.jinja" import sudoers with context %}
sudo:
pkg.installed:
- name: {{ sudoers.pkg }}
{{ sudoers.get('configpath', '/etc') }}/sudoers:
file.managed:
- user: root
- group: {{ sudoers.get('group', 'root') }}
- mode: 440
- template: jinja
- source: salt://sudoers/files/sudoers
- check_cmd: {{ sudoers.get('execprefix', '/usr/sbin') }}/visudo -c -f
- context:
included: False
- require:
- pkg: sudo