mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-11-28 09:27:56 +01:00
18 lines
382 B
Plaintext
18 lines
382 B
Plaintext
|
salt-minion:
|
||
|
pkg.installed:
|
||
|
{% if grains['os_family'] in ['RedHat', 'Debian'] %}
|
||
|
- name: salt-minion
|
||
|
{% else %}
|
||
|
- name: salt
|
||
|
{% endif %}
|
||
|
file.managed:
|
||
|
- name: /etc/salt/minion
|
||
|
- template: jinja
|
||
|
- source: salt://salt/files/minion
|
||
|
service.running:
|
||
|
- enable: True
|
||
|
- require:
|
||
|
- pkg: salt-minion
|
||
|
- watch:
|
||
|
- file: salt-minion
|