0
0
mirror of https://github.com/saltstack-formulas/sudoers-formula.git synced 2024-12-03 16:38:45 +01:00
sudoers-formula/sudoers/package-map.jinja

16 lines
446 B
Plaintext
Raw Normal View History

2013-08-20 23:32:58 +02:00
{% set package_table = {
'Debian': {'sudo': 'sudo'},
'Ubuntu': {'sudo': 'sudo'},
'CentOS': {'sudo': 'sudo'},
'Fedora': {'sudo': 'sudo'},
'RedHat': {'sudo': 'sudo'},
2014-07-09 20:04:26 +02:00
'Amazon': {'sudo': 'sudo'},
2013-08-20 23:32:58 +02:00
'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 %}