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.
|
- {%- from "salt/map.jinja" import api with context %}
- {%- if api.get('enabled', False) %}
-
- salt_api_packages:
- pkg.installed:
- - names: {{ api.pkgs }}
-
- /etc/salt/master.d/_api.conf:
- file.managed:
- - source: salt://salt/files/_api.conf
- - user: root
- - template: jinja
- - require:
- - pkg: salt_api_packages
- - watch_in:
- - service: salt_api_service
-
- salt_api_service:
- service.running:
- - name: salt-api
- - require:
- - pkg: salt_api_packages
- - watch:
- - file: /etc/salt/master.d/_api.conf
-
- {%- endif %}
|