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.

24 lines
574B

  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. {%- if salt_settings.version is defined %}
  9. - version: {{ salt_settings.version }}
  10. {%- endif %}
  11. {% endif %}
  12. service.running:
  13. - enable: True
  14. - name: {{ salt_settings.api_service }}
  15. - require:
  16. - service: {{ salt_settings.master_service }}
  17. - watch:
  18. {% if salt_settings.install_packages %}
  19. - pkg: salt-api
  20. {% endif %}
  21. - file: salt-master