This repository has been archived on 2023-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
salt-states_old/salt-master/reactors.sls

29 lines
707 B
Plaintext
Raw Normal View History

Create reactors master configuration:
file.managed:
- name: /etc/salt/master.d/reactors.conf
- source: salt://salt-master/files/etc/salt/master.d/reactors.conf
- user: root
- group: root
- mode: "0644"
Create reactors directory:
file.directory:
- name: /srv/reactor
- user: root
- group: root
- mode: "0755"
Create rfxcom reactor:
file.managed:
- name: /srv/reactor/device_reactor.sls
- source: salt://salt-master/files/srv/reactor/device_reactor.sls
- user: root
- group: root
- mode: "0644"
2021-01-27 14:12:21 +00:00
#restart master to load reactors:
# service.running:
# - name: salt-master
# - onchanges:
# - file: Create reactors master configuration