2013-06-13 01:53:26 +02:00
|
|
|
salt-master:
|
|
|
|
pkg.installed:
|
|
|
|
{% if grains['os_family'] in ['RedHat', 'Debian'] %}
|
|
|
|
- name: salt-minion
|
|
|
|
{% else %}
|
|
|
|
- name: salt
|
|
|
|
{% endif %}
|
|
|
|
file.managed:
|
|
|
|
- name: /etc/salt/master
|
|
|
|
- template: jinja
|
|
|
|
- source: salt://salt/files/master
|
|
|
|
service.running:
|
|
|
|
- enable: True
|
|
|
|
- require:
|
|
|
|
- watch:
|
2013-08-13 00:33:02 +02:00
|
|
|
- pkg: salt-master
|
|
|
|
- file: salt-master
|