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.

syndic.sls 496B

8 years ago
8 years ago
12345678910111213141516171819202122232425
  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 %}