0
0
mirror of https://github.com/saltstack-formulas/sudoers-formula.git synced 2024-12-03 01:16:53 +01:00
sudoers-formula/sudoers/map.jinja
Jessy e4501d10d3 added includedir as variable (mostly for FreeBSD)
include files can now be specified with the filename only.
2018-02-04 20:04:11 +01:00

18 lines
645 B
Django/Jinja

{% 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'},
'Suse': {'pkg': 'sudo'},
'FreeBSD': {'pkg': 'sudo',
'configpath': '/usr/local/etc',
'includedir': '/usr/local/etc/sudoers.d',
'execprefix': '/usr/local/sbin',
'group': 'wheel'},
}, merge=salt['pillar.get']('sudoers:lookup')) %}