New Saltstack Salt formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

27 rindas
527B

  1. {%- from "salt/map.jinja" import api with context %}
  2. {%- if api.get('enabled', False) %}
  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 %}