|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- {% 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'},
- '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 %}
|