From 63f60151df07dae8c8f23e9218bfe45949b8981b Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Wed, 18 Aug 2021 07:10:53 +0200 Subject: [PATCH] updated zabbix state --- states/zabbix/agent/config.sls | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/states/zabbix/agent/config.sls b/states/zabbix/agent/config.sls index d7cebd1..834e3ba 100644 --- a/states/zabbix/agent/config.sls +++ b/states/zabbix/agent/config.sls @@ -18,7 +18,7 @@ zabbix_log_dir: - watch_in: - service: zabbix_agent_service -zabbix_agent_config_dir: +zabbix_agentd_config_dir: file.directory: - name: /etc/zabbix/zabbix_agentd.conf.d - user: {{ zabbix.agent.user }} @@ -27,6 +27,14 @@ zabbix_agent_config_dir: - watch_in: - service: zabbix_agent_service +zabbix_agentd_d_dir: + file.directory: + - name: /etc/zabbix/zabbix_agentd.d + - user: {{ zabbix.agent.user }} + - group: {{ zabbix.agent.user }} + - watch_in: + - service: zabbix_agent_service + zabbix_agent_config: file.managed: - name: /etc/zabbix/zabbix_agentd.conf