ba11c68c24
This reverts commit a0392693e3
.
48 lines
1.5 KiB
Django/Jinja
48 lines
1.5 KiB
Django/Jinja
# 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',
|
|
'googleauth_dir': '/etc/google_authenticator.d',
|
|
'root_group': 'root',
|
|
'shell': '/bin/bash',
|
|
'visudo_shell': '/bin/bash',
|
|
'bash_package': 'bash',
|
|
'sudo_package': 'sudo',
|
|
'googleauth_package': 'libpam-google-authenticator',
|
|
},
|
|
'Gentoo': {
|
|
'sudoers_dir': '/etc/sudoers.d',
|
|
'sudoers_file': '/etc/sudoers',
|
|
'googleauth_dir': '/etc/google_authenticator.d',
|
|
'root_group': 'root',
|
|
'shell': '/bin/bash',
|
|
'visudo_shell': '/bin/bash',
|
|
'bash_package': 'app-shells/bash',
|
|
'sudo_package': 'app-admin/sudo',
|
|
'googleauth_package': 'libpam-google-authenticator',
|
|
},
|
|
'FreeBSD': {
|
|
'sudoers_dir': '/usr/local/etc/sudoers.d',
|
|
'sudoers_file': '/usr/local/etc/sudoers',
|
|
'googleauth_dir': '/usr/local/etc/google_authenticator.d',
|
|
'root_group': 'wheel',
|
|
'shell': '/bin/csh',
|
|
'visudo_shell': '/usr/local/bin/bash',
|
|
'bash_package': 'bash',
|
|
'sudo_package': 'sudo',
|
|
'googleauth_package': 'pam_google_authenticator',
|
|
},
|
|
'default': {
|
|
'sudoers_dir': '/etc/sudoers.d',
|
|
'sudoers_file': '/etc/sudoers',
|
|
'googleauth_dir': '/etc/google_authenticator.d',
|
|
'root_group': 'root',
|
|
'shell': '/bin/bash',
|
|
'visudo_shell': '/bin/bash',
|
|
'bash_package': 'bash',
|
|
'sudo_package': 'sudo',
|
|
'googleauth_package': 'libpam-google-authenticator',
|
|
},
|
|
}, merge=salt['pillar.get']('users:lookup')) %}
|