mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-11-28 07:18:02 +01:00
19 lines
494 B
Plaintext
19 lines
494 B
Plaintext
{% from "salt/package-map.jinja" import pkgs with context %}
|
|
|
|
salt-minion:
|
|
pkg.installed:
|
|
- name: {{ pkgs['salt-minion'] }}
|
|
file.recurse:
|
|
- name: {{ pkgs.get('config-path', '/etc/salt') }}/minion.d
|
|
- template: jinja
|
|
- source: salt://salt/files/minion.d
|
|
- clean: True
|
|
- context:
|
|
standalone: False
|
|
service.running:
|
|
- enable: True
|
|
- name: {{ pkgs.get('minion-service', 'salt-minion') }}
|
|
- watch:
|
|
- pkg: salt-minion
|
|
- file: salt-minion
|