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.

32 lines
650B

  1. # vim: sts=2 ts=2 sw=2 et ai
  2. {% from "users/map.jinja" import users with context %}
  3. #Support bash in FreeBSD
  4. bash:
  5. pkg:
  6. - installed
  7. sudo:
  8. group:
  9. - present
  10. - system: True
  11. pkg:
  12. - installed
  13. - require:
  14. - group: sudo
  15. - file: {{ users.sudoers_dir }}
  16. {{ users.sudoers_dir }}:
  17. file:
  18. - directory
  19. sudoer-defaults:
  20. file.append:
  21. - name: {{ users.sudoers_file }}
  22. - require:
  23. - pkg: sudo
  24. - text:
  25. - Defaults env_reset
  26. - Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  27. - '#includedir {{ users.sudoers_dir }}'