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.
|
- {%- from "salt/map.jinja" import api with context %}
- {%- if api.enabled %}
-
- 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 %}
|