mirror of
https://github.com/saltstack-formulas/sudoers-formula.git
synced 2024-12-11 21:04:29 +01:00
15 lines
414 B
Plaintext
15 lines
414 B
Plaintext
|
{% set package_table = {
|
||
|
'Debian': {'sudo': 'sudo'},
|
||
|
'Ubuntu': {'sudo': 'sudo'},
|
||
|
'CentOS': {'sudo': 'sudo'},
|
||
|
'Fedora': {'sudo': 'sudo'},
|
||
|
'RedHat': {'sudo': 'sudo'},
|
||
|
'Gentoo': {'sudo': 'app-admin/sudo'}
|
||
|
} %}
|
||
|
|
||
|
{% if 'package_table' in pillar %}
|
||
|
{% set pkgs = pillar['package_table'] %}
|
||
|
{% elif grains['os'] in package_table %}
|
||
|
{% set pkgs = package_table[grains['os']] %}
|
||
|
{% endif %}
|