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.

21 satır
764B

  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. 'Gentoo': {'salt-master': 'app-admin/salt',
  13. 'salt-minion': 'app-admin/salt'}
  14. } %}
  15. {% if 'package_table' in pillar %}
  16. {% set pkgs = pillar['package_table'] %}
  17. {% elif grains['os'] in package_table %}
  18. {% set pkgs = package_table[grains['os']] %}
  19. {% endif %}