director.sls 619 Bytes
Newer Older
Marvin W's avatar
Marvin W committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/usr/local/share/director:
  file.directory

/usr/local/share/director/main.js:
  file.managed:
    - source: salt://freifunk-mgmt/files/director/main.js
    - require:
      - file: /usr/local/share/director

/etc/systemd/system/director.service:
  file.managed:
    - source: salt://freifunk-mgmt/files/director/director.service
    - require:
      - file: /usr/local/share/director/main.js

service_director:
  service.running:
    - name: director
    - enable: True
    - require:
      - pkg: nodejs
    - watch:
      - file: /usr/local/share/director/main.js
      - file: /etc/systemd/system/director.service