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 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 %}
|