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.

map.jinja 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. 'googleauth_dir': '/etc/google_authenticator.d',
  7. 'root_group': 'root',
  8. 'shell': '/bin/bash',
  9. 'visudo_shell': '/bin/bash',
  10. 'bash_package': 'bash',
  11. 'sudo_package': 'sudo',
  12. 'googleauth_package': 'libpam-google-authenticator',
  13. 'polkit_dir': '/etc/polkit-1/localauthority.conf.d',
  14. 'polkit_defaults': 'unix-group:sudo;'
  15. },
  16. 'Gentoo': {
  17. 'sudoers_dir': '/etc/sudoers.d',
  18. 'sudoers_file': '/etc/sudoers',
  19. 'googleauth_dir': '/etc/google_authenticator.d',
  20. 'root_group': 'root',
  21. 'shell': '/bin/bash',
  22. 'visudo_shell': '/bin/bash',
  23. 'bash_package': 'app-shells/bash',
  24. 'sudo_package': 'app-admin/sudo',
  25. 'googleauth_package': 'libpam-google-authenticator',
  26. },
  27. 'FreeBSD': {
  28. 'sudoers_dir': '/usr/local/etc/sudoers.d',
  29. 'sudoers_file': '/usr/local/etc/sudoers',
  30. 'googleauth_dir': '/usr/local/etc/google_authenticator.d',
  31. 'root_group': 'wheel',
  32. 'shell': '/bin/csh',
  33. 'visudo_shell': '/usr/local/bin/bash',
  34. 'bash_package': 'bash',
  35. 'sudo_package': 'sudo',
  36. 'googleauth_package': 'pam_google_authenticator',
  37. },
  38. 'default': {
  39. 'sudoers_dir': '/etc/sudoers.d',
  40. 'sudoers_file': '/etc/sudoers',
  41. 'googleauth_dir': '/etc/google_authenticator.d',
  42. 'root_group': 'root',
  43. 'shell': '/bin/bash',
  44. 'visudo_shell': '/bin/bash',
  45. 'bash_package': 'bash',
  46. 'sudo_package': 'sudo',
  47. 'googleauth_package': 'libpam-google-authenticator',
  48. 'polkit_dir': '/etc/polkit-1/localauthority.conf.d',
  49. 'polkit_defaults': 'unix-group:sudo;'
  50. },
  51. }, merge=salt['pillar.get']('users:lookup')) %}