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.

36 lines
1005B

  1. # vim: sts=2 ts=2 sw=2 et ai
  2. {% set users = salt['grains.filter_by']({
  3. 'Debian': {
  4. 'sudoers_dir': '/etc/sudoers.d/',
  5. 'sudoers_file': '/etc/sudoers',
  6. 'root_group': 'root',
  7. 'visudo_shell': '/bin/bash',
  8. 'bash_package': 'bash',
  9. 'sudo_package': 'sudo',
  10. },
  11. 'Gentoo': {
  12. 'sudoers_dir': '/etc/sudoers.d/',
  13. 'sudoers_file': '/etc/sudoers',
  14. 'root_group': 'root',
  15. 'visudo_shell': '/bin/bash',
  16. 'bash_package': 'app-shells/bash',
  17. 'sudo_package': 'app-admin/sudo',
  18. },
  19. 'FreeBSD': {
  20. 'sudoers_dir': '/usr/local/etc/sudoers.d/',
  21. 'sudoers_file': '/usr/local/etc/sudoers',
  22. 'root_group': 'wheel',
  23. 'visudo_shell': '/usr/local/bin/bash',
  24. 'bash_package': 'bash',
  25. 'sudo_package': 'sudo',
  26. },
  27. 'default': {
  28. 'sudoers_dir': '/etc/sudoers.d/',
  29. 'sudoers_file': '/etc/sudoers',
  30. 'root_group': 'root',
  31. 'visudo_shell': '/bin/bash',
  32. 'bash_package': 'bash',
  33. 'sudo_package': 'sudo',
  34. },
  35. }, merge=salt['pillar.get']('users:lookup')) %}