summaryrefslogtreecommitdiffstats
path: root/salt/profile
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-02-12 02:39:47 +0100
committerGeorg Pfuetzenreuter2023-02-12 02:39:47 +0100
commitb446afcc4968de30e0cf79ed82b64c3d4a431d07 (patch)
tree8f2d1a3b0c7843866eff50e56da7385d13035acd /salt/profile
parent82e8ce4eb273a1016ab1613697a5a3eb821cffa5 (diff)
downloadsalt-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')
-rw-r--r--salt/profile/matterbridge/init.sls4
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 %}