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.

package-map.jinja 1.6KB

10 yıl önce
11 yıl önce
12345678910111213141516171819202122232425262728293031323334353637383940
  1. {% set package_table = {
  2. 'Debian': {'salt-master': 'salt-master',
  3. 'salt-minion': 'salt-minion',
  4. 'salt-syndic': 'salt-syndic',
  5. 'salt-cloud': 'salt-cloud'},
  6. 'Ubuntu': {'salt-master': 'salt-master',
  7. 'salt-minion': 'salt-minion',
  8. 'salt-syndic': 'salt-syndic',
  9. 'salt-cloud': 'salt-cloud'},
  10. 'CentOS': {'salt-master': 'salt-master',
  11. 'salt-minion': 'salt-minion',
  12. 'salt-syndic': 'salt-syndic',
  13. 'salt-cloud': 'salt-cloud'},
  14. 'Amazon': {'salt-master': 'salt-master',
  15. 'salt-minion': 'salt-minion',
  16. 'salt-syndic': 'salt-syndic',
  17. 'salt-cloud': 'salt-cloud'},
  18. 'Fedora': {'salt-master': 'salt-master',
  19. 'salt-minion': 'salt-minion',
  20. 'salt-syndic': 'salt-syndic',
  21. 'salt-cloud': 'salt-cloud'},
  22. 'RedHat': {'salt-master': 'salt-master',
  23. 'salt-minion': 'salt-minion',
  24. 'salt-syndic': 'salt-syndic',
  25. 'salt-cloud': 'salt-cloud'},
  26. 'Gentoo': {'salt-master': 'app-admin/salt',
  27. 'salt-minion': 'app-admin/salt',
  28. 'salt-syndic': 'app-admin/salt',
  29. 'salt-cloud': 'app-admin/salt'},
  30. 'Arch': {'salt-master': 'salt',
  31. 'salt-minion': 'salt',
  32. 'salt-syndic': 'salt',
  33. 'salt-cloud': 'salt'}
  34. } %}
  35. {% if 'package_table' in pillar %}
  36. {% set pkgs = pillar['package_table'] %}
  37. {% elif grains['os'] in package_table %}
  38. {% set pkgs = package_table[grains['os']] %}
  39. {% endif %}