New version of salt-formula from Saltstack
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 minion with context %}
- {%- if minion.enabled %}
-
- salt_minion_packages:
- pkg.latest:
- - names: {{ minion.pkgs }}
-
- /etc/salt/minion.d/minion.conf:
- file.managed:
- - source: salt://salt/files/minion.conf
- - user: root
- - group: root
- - template: jinja
- - require:
- - pkg: salt_minion_packages
- - watch_in:
- - service: salt_minion_service
-
- salt_minion_service:
- service.running:
- - name: {{ minion.service }}
- - enable: true
-
- {%- endif %}
|