2015-03-16 23:39:32 -05:00
|
|
|
{% from "salt/map.jinja" import salt_settings with context %}
|
2013-08-14 14:53:29 -05:00
|
|
|
|
2013-06-12 17:53:26 -06:00
|
|
|
salt-master:
|
|
|
|
pkg.installed:
|
2015-03-16 23:39:32 -05:00
|
|
|
- name: {{ salt_settings.salt_master }}
|
2014-10-06 11:17:43 -04:00
|
|
|
file.recurse:
|
2015-03-16 23:39:32 -05:00
|
|
|
- name: {{ salt_settings.config_path }}/master.d
|
2013-06-12 17:53:26 -06:00
|
|
|
- template: jinja
|
2014-10-06 11:17:43 -04:00
|
|
|
- source: salt://salt/files/master.d
|
|
|
|
- clean: True
|
2013-06-12 17:53:26 -06:00
|
|
|
service.running:
|
|
|
|
- enable: True
|
2015-03-16 23:39:32 -05:00
|
|
|
- name: {{ salt_settings.master_service }}
|
2013-06-12 17:53:26 -06:00
|
|
|
- watch:
|
2013-08-12 17:33:02 -05:00
|
|
|
- pkg: salt-master
|
|
|
|
- file: salt-master
|