sudoers-formula/sudoers/init.sls

18 lines
335 B
Plaintext

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