1
0
Fork 0
mirror of synced 2024-11-17 06:35:34 -05:00
formula-sudoers/sudoers/map.jinja

26 lines
931 B
Text
Raw Normal View History

{% 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'},
'FreeBSD': {'pkg': 'sudo',
'config-path': '/usr/local/etc',
2015-01-01 17:14:56 -05:00
'group': 'wheel'},
}, merge=salt['pillar.get']('sudoers:lookup', None)) %}
2017-02-14 16:34:39 -05:00
{% set ad_group_maps = salt['grains.filter_by']({
2017-02-14 16:34:39 -05:00
'default': { 'default': 'ALL = (ALL:ALL) NOPASSWD: SUPPORT' },
'dev': { 'default': 'ALL = (ALL:ALL) NOPASSWD: ALL' },
'qa': { 'default': 'ALL = (ALL:ALL) NOPASSWD: SUPPORT',
'plosqa': 'ALL = (ALL:ALL) NOPASSWD: ALL' },
},
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
%}