Saltstack Official Users Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 years ago
11 years ago
123456789101112131415161718192021222324252627
  1. # vim: sts=2 ts=2 sw=2 et ai
  2. {% from "users/map.jinja" import users with context %}
  3. # Ensure availability of bash
  4. users_bash-package:
  5. pkg.installed:
  6. - name: {{ users.bash_package }}
  7. users_sudo-package:
  8. pkg.installed:
  9. - name: {{ users.sudo_package }}
  10. - require:
  11. - file: {{ users.sudoers_dir }}
  12. users_{{ users.sudoers_dir }}:
  13. file.directory:
  14. - name: {{ users.sudoers_dir }}
  15. users_sudoer-defaults:
  16. file.append:
  17. - name: {{ users.sudoers_file }}
  18. - require:
  19. - pkg: users_sudo-package
  20. - text:
  21. - Defaults env_reset
  22. - Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  23. - '#includedir {{ users.sudoers_dir }}'