diff options
author | Georg Pfuetzenreuter | 2023-02-12 02:39:47 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2023-02-12 02:39:47 +0100 |
commit | b446afcc4968de30e0cf79ed82b64c3d4a431d07 (patch) | |
tree | 8f2d1a3b0c7843866eff50e56da7385d13035acd /salt/profile/matterbridge/init.sls | |
parent | 82e8ce4eb273a1016ab1613697a5a3eb821cffa5 (diff) | |
download | salt-b446afcc4968de30e0cf79ed82b64c3d4a431d07.tar.gz salt-b446afcc4968de30e0cf79ed82b64c3d4a431d07.tar.bz2 salt-b446afcc4968de30e0cf79ed82b64c3d4a431d07.zip |
matterbridge: restart on changes
Matterbridge does detect file changes, but seems to only apply them on
a service restart.
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'salt/profile/matterbridge/init.sls')
-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 %} |