mirror of
https://github.com/saltstack-formulas/sudoers-formula.git
synced 2024-11-30 23:55:34 +01:00
24e66ca8bf
Dashes causes some weird issues while rendering jinja templates.
17 lines
587 B
Django/Jinja
17 lines
587 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',
|
|
'execprefix': '/usr/local/sbin',
|
|
'group': 'wheel'},
|
|
}, merge=salt['pillar.get']('sudoers:lookup')) %}
|