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.

31 lines
782B

  1. {% from "salt/map.jinja" import salt_settings with context %}
  2. include:
  3. - salt.master
  4. salt-syndic:
  5. {% if salt_settings.install_packages %}
  6. pkg.installed:
  7. - name: {{ salt_settings.salt_syndic }}
  8. {%- if salt_settings.version is defined %}
  9. - version: {{ salt_settings.version }}
  10. {%- endif %}
  11. - require_in:
  12. - service: salt-syndic
  13. - watch_in:
  14. - service: salt-syndic
  15. {% endif %}
  16. service.running:
  17. - enable: True
  18. - name: {{ salt_settings.syndic_service }}
  19. {%- if grains.os_family in ['FreeBSD', 'Gentoo'] %}
  20. - retry: {{ salt_settings.retry_options | json }}
  21. {%- endif %}
  22. - require:
  23. - service: salt-master
  24. - watch:
  25. {% if salt_settings.install_packages %}
  26. - pkg: salt-master
  27. {% endif %}
  28. - file: salt-master