2013-08-14 21:53:29 +02:00
|
|
|
{% set package_table = {
|
|
|
|
'Debian': {'salt-master': 'salt-master',
|
2014-07-20 16:59:38 +02:00
|
|
|
'salt-minion': 'salt-minion',
|
2014-07-22 10:24:09 +02:00
|
|
|
'salt-syndic': 'salt-syndic',
|
2014-07-20 16:59:38 +02:00
|
|
|
'salt-cloud': 'salt-cloud'},
|
2013-08-14 23:16:50 +02:00
|
|
|
'Ubuntu': {'salt-master': 'salt-master',
|
2014-07-20 16:59:38 +02:00
|
|
|
'salt-minion': 'salt-minion',
|
2014-07-22 10:24:09 +02:00
|
|
|
'salt-syndic': 'salt-syndic',
|
2014-07-20 16:59:38 +02:00
|
|
|
'salt-cloud': 'salt-cloud'},
|
2013-08-14 23:16:50 +02:00
|
|
|
'CentOS': {'salt-master': 'salt-master',
|
2014-07-20 16:59:38 +02:00
|
|
|
'salt-minion': 'salt-minion',
|
2014-07-22 10:24:09 +02:00
|
|
|
'salt-syndic': 'salt-syndic',
|
2014-07-20 16:59:38 +02:00
|
|
|
'salt-cloud': 'salt-cloud'},
|
2014-03-19 19:06:27 +01:00
|
|
|
'Amazon': {'salt-master': 'salt-master',
|
2014-07-20 16:59:38 +02:00
|
|
|
'salt-minion': 'salt-minion',
|
2014-07-22 10:24:09 +02:00
|
|
|
'salt-syndic': 'salt-syndic',
|
2014-07-20 16:59:38 +02:00
|
|
|
'salt-cloud': 'salt-cloud'},
|
2013-08-14 23:16:50 +02:00
|
|
|
'Fedora': {'salt-master': 'salt-master',
|
2014-07-20 16:59:38 +02:00
|
|
|
'salt-minion': 'salt-minion',
|
2014-07-22 10:24:09 +02:00
|
|
|
'salt-syndic': 'salt-syndic',
|
2014-07-20 16:59:38 +02:00
|
|
|
'salt-cloud': 'salt-cloud'},
|
2013-08-14 21:53:29 +02:00
|
|
|
'RedHat': {'salt-master': 'salt-master',
|
2014-07-20 16:59:38 +02:00
|
|
|
'salt-minion': 'salt-minion',
|
2014-07-22 10:24:09 +02:00
|
|
|
'salt-syndic': 'salt-syndic',
|
2014-07-20 16:59:38 +02:00
|
|
|
'salt-cloud': 'salt-cloud'},
|
2013-08-15 17:16:54 +02:00
|
|
|
'Gentoo': {'salt-master': 'app-admin/salt',
|
2014-07-20 16:59:38 +02:00
|
|
|
'salt-minion': 'app-admin/salt',
|
2014-07-22 10:24:09 +02:00
|
|
|
'salt-syndic': 'app-admin/salt',
|
|
|
|
'salt-cloud': 'app-admin/salt'},
|
2014-02-11 04:16:31 +01:00
|
|
|
'Arch': {'salt-master': 'salt',
|
2014-07-20 16:59:38 +02:00
|
|
|
'salt-minion': 'salt',
|
2014-07-22 10:24:09 +02:00
|
|
|
'salt-syndic': 'salt',
|
|
|
|
'salt-cloud': 'salt'}
|
2013-08-14 21:53:29 +02:00
|
|
|
} %}
|
|
|
|
|
|
|
|
{% if 'package_table' in pillar %}
|
|
|
|
{% set pkgs = pillar['package_table'] %}
|
|
|
|
{% elif grains['os'] in package_table %}
|
|
|
|
{% set pkgs = package_table[grains['os']] %}
|
|
|
|
{% endif %}
|