2015-01-01 17:19:47 -05:00
|
|
|
{% set sudoers = salt['grains.filter_by']({
|
|
|
|
'Debian': {'pkg': 'sudo'},
|
|
|
|
'Ubuntu': {'pkg': 'sudo'},
|
|
|
|
'CentOS': {'pkg': 'sudo'},
|
|
|
|
'Fedora': {'pkg': 'sudo'},
|
|
|
|
'RedHat': {'pkg': 'sudo'},
|
|
|
|
'Amazon': {'pkg': 'sudo'},
|
|
|
|
'Gentoo': {'pkg': 'app-admin/sudo'},
|
|
|
|
'Mint': {'pkg': 'sudo'},
|
|
|
|
'Arch': {'pkg': 'sudo'},
|
2015-03-07 05:28:49 -05:00
|
|
|
'Suse': {'pkg': 'sudo'},
|
2015-01-01 17:19:47 -05:00
|
|
|
'FreeBSD': {'pkg': 'sudo',
|
2014-10-14 02:15:30 -04:00
|
|
|
'config-path': '/usr/local/etc',
|
2015-01-01 17:14:56 -05:00
|
|
|
'group': 'wheel'},
|
2016-12-21 14:07:35 -05:00
|
|
|
}, merge=salt['pillar.get']('sudoers:lookup', None)) %}
|
2017-02-14 16:34:39 -05:00
|
|
|
|
2017-02-15 17:27:40 -05:00
|
|
|
# our plos active directory core groups sudoers permissions, filtered by environment
|
2017-02-14 19:30:14 -05:00
|
|
|
{% set ad_group_maps = salt['grains.filter_by']({
|
2017-02-15 17:51:53 -05:00
|
|
|
'default': { 'default': 'ALL = (root) NOPASSWD: SUPPORT' },
|
2017-02-15 17:25:03 -05:00
|
|
|
'vagrant': { 'default': 'ALL = (ALL:ALL) NOPASSWD: ALL' },
|
|
|
|
'dev': { 'default': 'ALL = (ALL:ALL) NOPASSWD: ALL' },
|
2017-02-15 17:51:53 -05:00
|
|
|
'qa': { 'default': 'ALL = (root) NOPASSWD: SUPPORT',
|
|
|
|
'plosqa': 'ALL = (root) NOPASSWD: ALL' },
|
2017-02-14 16:34:39 -05:00
|
|
|
},
|
|
|
|
grain='environment',
|
2017-02-14 18:37:13 -05:00
|
|
|
merge=salt['pillar.get']('group_maps:lookup', None))
|
2017-02-14 16:34:39 -05:00
|
|
|
%}
|