diff options
author | Georg Pfuetzenreuter | 2023-02-12 02:42:29 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2023-02-12 02:42:29 +0100 |
commit | 1eb10e4687370bda3c0bc05476ba9241abfd5cde (patch) | |
tree | 8f2d1a3b0c7843866eff50e56da7385d13035acd /salt | |
parent | 82e8ce4eb273a1016ab1613697a5a3eb821cffa5 (diff) | |
parent | b446afcc4968de30e0cf79ed82b64c3d4a431d07 (diff) | |
download | salt-1eb10e4687370bda3c0bc05476ba9241abfd5cde.tar.gz salt-1eb10e4687370bda3c0bc05476ba9241abfd5cde.tar.bz2 salt-1eb10e4687370bda3c0bc05476ba9241abfd5cde.zip |
Merge pull request 'matterbridge: restart on changes' (#19) from matterbridge-watch into production
Reviewed-on: https://git.com.de/LibertaCasa/salt/pulls/19
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 %} |