2014-12-31 11:52:31 +01:00
|
|
|
{% from "salt/map.jinja" import pkgs with context %}
|
2014-12-21 15:35:45 +01:00
|
|
|
|
|
|
|
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: True
|
|
|
|
service.dead:
|
|
|
|
- enable: False
|
|
|
|
- name: {{ pkgs.get('minion-service', 'salt-minion') }}
|
|
|
|
- require:
|
|
|
|
- pkg: salt-minion
|
|
|
|
- file: salt-minion
|