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.

22 lines
608B

  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. },
  9. 'FreeBSD': {
  10. 'sudoers_dir': '/usr/local/etc/sudoers.d/',
  11. 'sudoers_file': '/usr/local/etc/sudoers',
  12. 'root_group': 'wheel',
  13. 'visudo_shell': '/usr/local/bin/bash',
  14. },
  15. 'default': {
  16. 'sudoers_dir': '/etc/sudoers.d/',
  17. 'sudoers_file': '/etc/sudoers',
  18. 'root_group': 'root',
  19. 'visudo_shell': '/bin/bash',
  20. },
  21. }, merge=salt['pillar.get']('users:lookup')) %}