New version of salt-formula from Saltstack
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.

25 lines
496B

  1. {%- from "salt/map.jinja" import syndic with context %}
  2. {%- if syndic.enabled %}
  3. include:
  4. - salt.master.service
  5. salt_syndic_packages:
  6. pkg.installed:
  7. - names: {{ syndic.pkgs }}
  8. /etc/salt/master.d/_syndic.conf:
  9. file.managed:
  10. - source: salt://salt/files/_syndic.conf
  11. - user: root
  12. - template: jinja
  13. - watch_in:
  14. - service: salt_master_service
  15. - service: salt_syndic_service
  16. salt_syndic_service:
  17. service.running:
  18. - name: {{ syndic.service }}
  19. - enable: true
  20. {%- endif %}