diff options
Diffstat (limited to 'salt')
-rw-r--r-- | salt/profile/matterbridge/init.sls | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/salt/profile/matterbridge/init.sls b/salt/profile/matterbridge/init.sls index a68de46..c90225b 100644 --- a/salt/profile/matterbridge/init.sls +++ b/salt/profile/matterbridge/init.sls @@ -34,6 +34,8 @@ matterbridge_files: general: {{ instances[instance]['general'] | default({}) }} accounts: {{ instances[instance]['accounts'] }} gateways: {{ instances[instance]['gateways'] }} + - watch_in: + - service: matterbridge_{{ instance }}_service {%- endfor %} {%- for instance in instances %} @@ -52,6 +54,8 @@ matterbridge_{{ instance }}_service: service.running: - name: matterbridge@{{ instance }}.service - enable: True + - watch: + - file: /etc/matterbridge/{{ instance }}.toml {%- endfor %} {%- endif %} |