896578a75a
Added map.jinja solution more in line with other formulas, This also improves issue #30 and pull request #30
19 lines
485 B
Plaintext
19 lines
485 B
Plaintext
{% from "salt/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: True
|
|
service.dead:
|
|
- enable: False
|
|
- name: {{ pkgs.get('minion-service', 'salt-minion') }}
|
|
- require:
|
|
- pkg: salt-minion
|
|
- file: salt-minion
|