|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- {% set package_table = {
- 'Debian': {'salt-master': 'salt-master',
- 'salt-minion': 'salt-minion',
- 'salt-syndic': 'salt-syndic',
- 'salt-cloud': 'salt-cloud'},
- 'Ubuntu': {'salt-master': 'salt-master',
- 'salt-minion': 'salt-minion',
- 'salt-syndic': 'salt-syndic',
- 'salt-cloud': 'salt-cloud',
- 'salt-ssh': 'salt-ssh'},
- 'CentOS': {'salt-master': 'salt-master',
- 'salt-minion': 'salt-minion',
- 'salt-syndic': 'salt-syndic',
- 'salt-cloud': 'salt-cloud'},
- 'Amazon': {'salt-master': 'salt-master',
- 'salt-minion': 'salt-minion',
- 'salt-syndic': 'salt-syndic',
- 'salt-cloud': 'salt-cloud'},
- 'Fedora': {'salt-master': 'salt-master',
- 'salt-minion': 'salt-minion',
- 'salt-syndic': 'salt-syndic',
- 'salt-cloud': 'salt-cloud'},
- 'RedHat': {'salt-master': 'salt-master',
- 'salt-minion': 'salt-minion',
- 'salt-syndic': 'salt-syndic',
- 'salt-cloud': 'salt-cloud'},
- 'Gentoo': {'salt-master': 'app-admin/salt',
- 'salt-minion': 'app-admin/salt',
- 'salt-syndic': 'app-admin/salt',
- 'salt-cloud': 'app-admin/salt'},
- 'Arch': {'salt-master': 'salt',
- 'salt-minion': 'salt',
- 'salt-syndic': 'salt',
- 'salt-cloud': 'salt'},
- 'FreeBSD': {'salt-master': 'py27-salt',
- 'salt-minion': 'py27-salt',
- 'salt-syndic': 'py27-salt',
- 'salt-cloud': 'py27-salt',
- 'config-path': '/usr/local/etc/salt',
- 'minion-service': 'salt_minion',
- 'master-service': 'salt_master',
- 'syndic-service': 'salt_syndic'}
- } %}
-
- {% if 'package_table' in pillar %}
- {% set pkgs = pillar['package_table'] %}
- {% elif grains['os'] in package_table %}
- {% set pkgs = package_table[grains['os']] %}
- {% endif %}
|