From 0dad5294c7f2054f9d0c39c95b5a8d76e80544e7 Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 28 Sep 2024 14:36:12 +0200 Subject: [PATCH] updated zabbix state --- states/zabbix/init.sls | 2 +- states/zabbix/templates/user_parameters.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/states/zabbix/init.sls b/states/zabbix/init.sls index 5bd1996..8462605 100644 --- a/states/zabbix/init.sls +++ b/states/zabbix/init.sls @@ -13,7 +13,7 @@ include: ## for upgrade zabbix-agent-service: - service.stopped: + service.dead: - name: zabbix-agent - enable: false {% endif %} diff --git a/states/zabbix/templates/user_parameters.j2 b/states/zabbix/templates/user_parameters.j2 index 1e80cf2..0d6fa88 100644 --- a/states/zabbix/templates/user_parameters.j2 +++ b/states/zabbix/templates/user_parameters.j2 @@ -1,4 +1,4 @@ {%- from "zabbix/map.jinja" import zabbix with context -%} -{%- for userparameter in zabbix.agent.userparameters %} +{%- for userparameter in zabbix.agent2.userparameters %} UserParameter={{ userparameter }} {%- endfor %} \ No newline at end of file