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 933B

10 年之前
123456789101112131415161718192021222324
  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. 'Amazon': {'salt-master': 'salt-master',
  9. 'salt-minion': 'salt-minion'},
  10. 'Fedora': {'salt-master': 'salt-master',
  11. 'salt-minion': 'salt-minion'},
  12. 'RedHat': {'salt-master': 'salt-master',
  13. 'salt-minion': 'salt-minion'},
  14. 'Gentoo': {'salt-master': 'app-admin/salt',
  15. 'salt-minion': 'app-admin/salt'},
  16. 'Arch': {'salt-master': 'salt',
  17. 'salt-minion': 'salt'}
  18. } %}
  19. {% if 'package_table' in pillar %}
  20. {% set pkgs = pillar['package_table'] %}
  21. {% elif grains['os'] in package_table %}
  22. {% set pkgs = package_table[grains['os']] %}
  23. {% endif %}