0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2024-11-28 05:08:00 +01:00
users-formula/users/sudo.sls
Ash Berlin 99d7b92b06 Ensure that we are sudo includes /etc/sudoers.d
It doesn't by default everywhere - without this the sudo_rules option won't work
2014-04-28 17:39:45 +01:00

24 lines
469 B
Plaintext

sudo:
group:
- present
- system: True
pkg:
- installed
- require:
- group: sudo
- file: /etc/sudoers.d
/etc/sudoers.d:
file:
- directory
sudoer-defaults:
file.append:
- name: /etc/sudoers
- require:
- pkg: sudo
- text:
- Defaults env_reset
- Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
- '#includedir /etc/sudoers.d'