2013-08-20 17:32:58 -04:00
|
|
|
{% from "sudoers/package-map.jinja" import pkgs with context %}
|
|
|
|
|
|
|
|
sudo:
|
|
|
|
pkg.installed:
|
2013-08-20 17:34:35 -04:00
|
|
|
- name: {{ pkgs.sudo }}
|
2013-08-20 17:32:58 -04:00
|
|
|
|
2014-10-02 03:29:40 -04:00
|
|
|
{{ pkgs.get('config-path', '/etc') }}/sudoers:
|
2013-08-20 17:32:58 -04:00
|
|
|
file.managed:
|
|
|
|
- user: root
|
2014-10-14 02:15:30 -04:00
|
|
|
- group: {{ pkgs.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
|
2013-08-20 17:32:58 -04:00
|
|
|
- require:
|
|
|
|
- pkg: sudo
|