1
0
Fork 0
mirror of synced 2024-11-22 08:45:35 -05:00
formula-sudoers/sudoers/package-map.jinja

15 lines
414 B
Text
Raw Normal View History

2013-08-20 17:32:58 -04:00
{% 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 %}