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'},
|
2014-07-09 14:04:26 -04:00
|
|
|
'Amazon': {'sudo': 'sudo'},
|
2014-10-01 11:26:17 -04:00
|
|
|
'Gentoo': {'sudo': 'app-admin/sudo'},
|
|
|
|
'Mint': {'sudo': 'sudo'}
|
2013-08-20 17:32:58 -04:00
|
|
|
} %}
|
|
|
|
|
|
|
|
{% if 'package_table' in pillar %}
|
|
|
|
{% set pkgs = pillar['package_table'] %}
|
|
|
|
{% elif grains['os'] in package_table %}
|
|
|
|
{% set pkgs = package_table[grains['os']] %}
|
|
|
|
{% endif %}
|