Saltstack Official Salt Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 line
667B

  1. {% set package_table = {
  2. 'Debian': {'salt-master': 'salt-master',
  3. 'salt-minion': 'salt-minion'},
  4. 'Ubuntu': {'salt-master': 'salt-master',
  5. 'salt-minion': 'salt-minion'},
  6. 'CentOS': {'salt-master': 'salt-master',
  7. 'salt-minion': 'salt-minion'},
  8. 'Fedora': {'salt-master': 'salt-master',
  9. 'salt-minion': 'salt-minion'},
  10. 'RedHat': {'salt-master': 'salt-master',
  11. 'salt-minion': 'salt-minion'}
  12. } %}
  13. {% if 'package_table' in pillar %}
  14. {% set pkgs = pillar['package_table'] %}
  15. {% elif grains['os'] in package_table %}
  16. {% set pkgs = package_table[grains['os']] %}
  17. {% endif %}