0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2024-11-27 22:38:34 +01:00
users-formula/users/map.jinja

40 lines
1.1 KiB
Plaintext
Raw Normal View History

# vim: sts=2 ts=2 sw=2 et ai
{% set users = salt['grains.filter_by']({
'Debian': {
2014-10-25 04:57:44 +02:00
'sudoers_dir': '/etc/sudoers.d',
'sudoers_file': '/etc/sudoers',
'root_group': 'root',
'shell': '/bin/bash',
'visudo_shell': '/bin/bash',
'bash_package': 'bash',
'sudo_package': 'sudo',
},
2014-05-31 13:15:03 +02:00
'Gentoo': {
2014-10-25 04:57:44 +02:00
'sudoers_dir': '/etc/sudoers.d',
2014-05-31 13:15:03 +02:00
'sudoers_file': '/etc/sudoers',
'root_group': 'root',
'shell': '/bin/bash',
2014-05-31 13:15:03 +02:00
'visudo_shell': '/bin/bash',
'bash_package': 'app-shells/bash',
'sudo_package': 'app-admin/sudo',
},
'FreeBSD': {
2014-10-25 04:57:44 +02:00
'sudoers_dir': '/usr/local/etc/sudoers.d',
'sudoers_file': '/usr/local/etc/sudoers',
'root_group': 'wheel',
'shell': '/bin/csh',
'visudo_shell': '/usr/local/bin/bash',
'bash_package': 'bash',
'sudo_package': 'sudo',
},
'default': {
2014-10-25 04:57:44 +02:00
'sudoers_dir': '/etc/sudoers.d',
'sudoers_file': '/etc/sudoers',
'root_group': 'root',
'shell': '/bin/bash',
'visudo_shell': '/bin/bash',
'bash_package': 'bash',
'sudo_package': 'sudo',
},
}, merge=salt['pillar.get']('users:lookup')) %}