2014-05-30 05:20:13 +02:00
|
|
|
# vim: sts=2 ts=2 sw=2 et ai
|
|
|
|
{% set users = salt['grains.filter_by']({
|
|
|
|
'Debian': {
|
|
|
|
'sudoers_dir': '/etc/sudoers.d/',
|
|
|
|
'sudoers_file': '/etc/sudoers',
|
|
|
|
'root_group': 'root',
|
|
|
|
'visudo_shell': '/bin/bash',
|
2014-05-31 13:14:00 +02:00
|
|
|
'bash_package': 'bash',
|
|
|
|
'sudo_package': 'sudo',
|
2014-05-30 05:20:13 +02:00
|
|
|
},
|
|
|
|
'FreeBSD': {
|
|
|
|
'sudoers_dir': '/usr/local/etc/sudoers.d/',
|
|
|
|
'sudoers_file': '/usr/local/etc/sudoers',
|
|
|
|
'root_group': 'wheel',
|
|
|
|
'visudo_shell': '/usr/local/bin/bash',
|
2014-05-31 13:14:00 +02:00
|
|
|
'bash_package': 'bash',
|
|
|
|
'sudo_package': 'sudo',
|
2014-05-30 05:20:13 +02:00
|
|
|
},
|
|
|
|
'default': {
|
|
|
|
'sudoers_dir': '/etc/sudoers.d/',
|
|
|
|
'sudoers_file': '/etc/sudoers',
|
|
|
|
'root_group': 'root',
|
|
|
|
'visudo_shell': '/bin/bash',
|
2014-05-31 13:14:00 +02:00
|
|
|
'bash_package': 'bash',
|
|
|
|
'sudo_package': 'sudo',
|
2014-05-30 05:20:13 +02:00
|
|
|
},
|
|
|
|
}, merge=salt['pillar.get']('users:lookup')) %}
|