2015-07-27 19:50:49 +02:00
|
|
|
# vim: sts=2 ts=2 sw=2 et ai
|
|
|
|
{% set users = salt['grains.filter_by']({
|
2014-05-30 05:20:13 +02:00
|
|
|
'Debian': {
|
2014-10-25 04:57:44 +02:00
|
|
|
'sudoers_dir': '/etc/sudoers.d',
|
2014-05-30 05:20:13 +02:00
|
|
|
'sudoers_file': '/etc/sudoers',
|
2015-01-14 18:25:17 +01:00
|
|
|
'googleauth_dir': '/etc/google_authenticator.d',
|
2014-05-30 05:20:13 +02:00
|
|
|
'root_group': 'root',
|
2014-09-11 17:03:14 +02:00
|
|
|
'shell': '/bin/bash',
|
2014-05-30 05:20:13 +02:00
|
|
|
'visudo_shell': '/bin/bash',
|
2014-05-31 13:14:00 +02:00
|
|
|
'bash_package': 'bash',
|
|
|
|
'sudo_package': 'sudo',
|
2015-01-14 18:25:17 +01:00
|
|
|
'googleauth_package': 'libpam-google-authenticator',
|
2017-02-02 23:12:15 +01:00
|
|
|
'polkit_dir': '/etc/polkit-1/localauthority.conf.d',
|
|
|
|
'polkit_defaults': 'unix-group:sudo;'
|
2014-05-30 05:20:13 +02:00
|
|
|
},
|
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',
|
2015-01-14 18:25:17 +01:00
|
|
|
'googleauth_dir': '/etc/google_authenticator.d',
|
2014-05-31 13:15:03 +02:00
|
|
|
'root_group': 'root',
|
2014-09-11 17:03:14 +02:00
|
|
|
'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',
|
2015-01-14 18:25:17 +01:00
|
|
|
'googleauth_package': 'libpam-google-authenticator',
|
2014-05-31 13:15:03 +02:00
|
|
|
},
|
2014-05-30 05:20:13 +02:00
|
|
|
'FreeBSD': {
|
2014-10-25 04:57:44 +02:00
|
|
|
'sudoers_dir': '/usr/local/etc/sudoers.d',
|
2014-05-30 05:20:13 +02:00
|
|
|
'sudoers_file': '/usr/local/etc/sudoers',
|
2015-01-14 18:25:17 +01:00
|
|
|
'googleauth_dir': '/usr/local/etc/google_authenticator.d',
|
2014-05-30 05:20:13 +02:00
|
|
|
'root_group': 'wheel',
|
2014-09-11 17:03:14 +02:00
|
|
|
'shell': '/bin/csh',
|
2014-05-30 05:20:13 +02:00
|
|
|
'visudo_shell': '/usr/local/bin/bash',
|
2014-05-31 13:14:00 +02:00
|
|
|
'bash_package': 'bash',
|
|
|
|
'sudo_package': 'sudo',
|
2015-01-14 18:25:17 +01:00
|
|
|
'googleauth_package': 'pam_google_authenticator',
|
2014-05-30 05:20:13 +02:00
|
|
|
},
|
|
|
|
'default': {
|
2014-10-25 04:57:44 +02:00
|
|
|
'sudoers_dir': '/etc/sudoers.d',
|
2014-05-30 05:20:13 +02:00
|
|
|
'sudoers_file': '/etc/sudoers',
|
2015-01-14 18:25:17 +01:00
|
|
|
'googleauth_dir': '/etc/google_authenticator.d',
|
2014-05-30 05:20:13 +02:00
|
|
|
'root_group': 'root',
|
2014-09-11 17:03:14 +02:00
|
|
|
'shell': '/bin/bash',
|
2014-05-30 05:20:13 +02:00
|
|
|
'visudo_shell': '/bin/bash',
|
2014-05-31 13:14:00 +02:00
|
|
|
'bash_package': 'bash',
|
|
|
|
'sudo_package': 'sudo',
|
2015-01-14 18:25:17 +01:00
|
|
|
'googleauth_package': 'libpam-google-authenticator',
|
2017-02-02 23:12:15 +01:00
|
|
|
'polkit_dir': '/etc/polkit-1/localauthority.conf.d',
|
|
|
|
'polkit_defaults': 'unix-group:sudo;'
|
2014-05-30 05:20:13 +02:00
|
|
|
},
|
2015-07-27 19:50:49 +02:00
|
|
|
}, merge=salt['pillar.get']('users:lookup')) %}
|