Saltstack Official Salt Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819
  1. {% from "salt/map.jinja" import salt_settings with context %}
  2. include:
  3. - salt.master
  4. salt-api:
  5. {% if salt_settings.install_packages %}
  6. pkg.installed:
  7. - name: {{ salt_settings.salt_api }}
  8. {% endif %}
  9. service.running:
  10. - enable: True
  11. - name: {{ salt_settings.api_service }}
  12. - require:
  13. - service: {{ salt_settings.master_service }}
  14. {% if salt_settings.install_packages %}
  15. - watch:
  16. - pkg: salt-api
  17. {% endif %}