1
0
Fork 0
mirror of synced 2024-11-17 06:35:34 -05:00
formula-sudoers/sudoers/init.sls

17 lines
395 B
Text

{% from "sudoers/package-map.jinja" import pkgs with context %}
sudo:
pkg.installed:
- name: {{ pkgs.sudo }}
{{ pkgs.get('config-path', '/etc') }}/sudoers:
file.managed:
- user: root
- group: {{ pkgs.get('group', 'root') }}
- mode: 440
- template: jinja
- source: salt://sudoers/files/sudoers
- context:
included: False
- require:
- pkg: sudo