From c9adadbdf0b84c48628bd75af7b547be1234edbb Mon Sep 17 00:00:00 2001 From: Marco Hofmann Date: Wed, 9 Oct 2019 15:23:08 +0200 Subject: [PATCH 1/3] Zabbix agent service should restart if pkg changes --- zabbix/agent/init.sls | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zabbix/agent/init.sls b/zabbix/agent/init.sls index 0e16fa23..cef13b7c 100644 --- a/zabbix/agent/init.sls +++ b/zabbix/agent/init.sls @@ -27,6 +27,8 @@ zabbix-agent: {% if salt['grains.get']('os') != 'Windows' %} - file: zabbix-agent-piddir {% endif %} + - watch: + - pkg: zabbix-agent zabbix-agent-restart: module.wait: From 452f7bc0ead6bff444b545ffb01e07eca00da1e8 Mon Sep 17 00:00:00 2001 From: Marco Hofmann Date: Wed, 9 Oct 2019 15:25:15 +0200 Subject: [PATCH 2/3] Zabbix proxy service should restart if pkg changes --- zabbix/proxy/init.sls | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zabbix/proxy/init.sls b/zabbix/proxy/init.sls index 074d6fe5..6da14fba 100644 --- a/zabbix/proxy/init.sls +++ b/zabbix/proxy/init.sls @@ -24,6 +24,8 @@ zabbix-proxy: {% for include in settings.get('includes', defaults.get('includes', [])) %} - file: {{ include }} {%- endfor %} + - watch: + - pkg: zabbix-proxy zabbix-proxy-logdir: file.directory: From ee0b8906fd165fdaba0bd47dc46d07a6167cfe0d Mon Sep 17 00:00:00 2001 From: Marco Hofmann Date: Wed, 9 Oct 2019 15:25:57 +0200 Subject: [PATCH 3/3] Zabbix server service should restart if pkg changes --- zabbix/server/init.sls | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zabbix/server/init.sls b/zabbix/server/init.sls index 36188a6c..c5a59f6c 100644 --- a/zabbix/server/init.sls +++ b/zabbix/server/init.sls @@ -22,6 +22,8 @@ zabbix-server: - pkg: zabbix-server - file: zabbix-server-logdir - file: zabbix-server-piddir + - watch: + - pkg: zabbix-server zabbix-server-logdir: file.directory: