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.

34 satır
771B

  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. bash-package:
  5. pkg.installed:
  6. - name: {{ users.bash_package }}
  7. sudo-group:
  8. group.present:
  9. - name: sudo
  10. - system: True
  11. sudo-package:
  12. pkg.installed:
  13. - name: {{ users.sudo_package }}
  14. - require:
  15. - group: sudo-group
  16. - file: {{ users.sudoers_dir }}
  17. {{ users.sudoers_dir }}:
  18. file:
  19. - directory
  20. sudoer-defaults:
  21. file.append:
  22. - name: {{ users.sudoers_file }}
  23. - require:
  24. - pkg: sudo-package
  25. - text:
  26. - Defaults env_reset
  27. - Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  28. - '#includedir {{ users.sudoers_dir }}'