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.

9 jaren geleden
9 jaren geleden
9 jaren geleden
9 jaren geleden
9 jaren geleden
1234567891011121314151617181920212223242526
  1. {%- from "salt/map.jinja" import api with context %}
  2. {%- if api.enabled %}
  3. salt_api_packages:
  4. pkg.installed:
  5. - names: {{ api.pkgs }}
  6. /etc/salt/master.d/_api.conf:
  7. file.managed:
  8. - source: salt://salt/files/_api.conf
  9. - user: root
  10. - template: jinja
  11. - require:
  12. - pkg: salt_api_packages
  13. - watch_in:
  14. - service: salt_api_service
  15. salt_api_service:
  16. service.running:
  17. - name: salt-api
  18. - require:
  19. - pkg: salt_api_packages
  20. - watch:
  21. - file: /etc/salt/master.d/_api.conf
  22. {%- endif %}