users-formula/users/sudo.sls

32 lines
650 B
Plaintext
Raw Normal View History

# vim: sts=2 ts=2 sw=2 et ai
{% from "users/map.jinja" import users with context %}
#Support bash in FreeBSD
bash:
pkg:
- installed
2013-06-19 21:53:46 +02:00
sudo:
group:
- present
- system: True
pkg:
- installed
- require:
- group: sudo
- file: {{ users.sudoers_dir }}
2013-06-19 21:53:46 +02:00
{{ users.sudoers_dir }}:
2013-06-19 21:53:46 +02:00
file:
- directory
sudoer-defaults:
file.append:
- name: {{ users.sudoers_file }}
2013-06-19 21:53:46 +02:00
- require:
- pkg: sudo
- text:
- Defaults env_reset
- Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
- '#includedir {{ users.sudoers_dir }}'