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.

service.sls 552B

9 years ago
1234567891011121314151617181920212223242526272829
  1. {%- from "salt/map.jinja" import master with context %}
  2. {%- if master.enabled %}
  3. salt_master_packages:
  4. pkg.latest:
  5. - names: {{ master.pkgs }}
  6. /etc/salt/master.d/master.conf:
  7. file.managed:
  8. - source: salt://salt/files/master.conf
  9. - user: root
  10. - template: jinja
  11. - require:
  12. - pkg: salt_master_packages
  13. - watch_in:
  14. - service: salt_master_service
  15. salt_master_service:
  16. service.running:
  17. - name: {{ master.service }}
  18. - enable: true
  19. /srv/salt/env:
  20. file.directory:
  21. - user: root
  22. - mode: 755
  23. - makedirs: true
  24. {%- endif %}