From a7996a325a52b685f5788f0d6dadaaac0d3bacf6 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Mon, 22 Mar 2021 19:09:32 +0100 Subject: [PATCH] updated zabbix state --- states/zabbix/defaults.yaml | 4 ++-- states/zabbix/templates/zabbix_agentd.conf.j2 | 4 ++-- states/zabbix/templates/zabbix_server.conf.j2 | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/states/zabbix/defaults.yaml b/states/zabbix/defaults.yaml index 4ba5a63..1fa32a2 100644 --- a/states/zabbix/defaults.yaml +++ b/states/zabbix/defaults.yaml @@ -18,8 +18,8 @@ zabbix: pkgs: - python3-pyzabbix - zabbix-agent - - zabbix-get - - zabbix-sender + #- zabbix-get + #- zabbix-sender config: Hostname: {{ salt["grains.get"]("fqdn") }} Include: "/etc/zabbix/zabbix_agentd.conf.d/*.conf" diff --git a/states/zabbix/templates/zabbix_agentd.conf.j2 b/states/zabbix/templates/zabbix_agentd.conf.j2 index a868307..836a80b 100644 --- a/states/zabbix/templates/zabbix_agentd.conf.j2 +++ b/states/zabbix/templates/zabbix_agentd.conf.j2 @@ -1,4 +1,4 @@ {%- from "zabbix/map.jinja" import zabbix with context -%} -{%- for k, v in zabbix.agent.config.items() %} -{{ k }}={{ v }} +{%- for key, value in zabbix.agent.config.items() %} +{{ key }}={{ value }} {%- endfor %} diff --git a/states/zabbix/templates/zabbix_server.conf.j2 b/states/zabbix/templates/zabbix_server.conf.j2 index 8d983bf..574c82c 100644 --- a/states/zabbix/templates/zabbix_server.conf.j2 +++ b/states/zabbix/templates/zabbix_server.conf.j2 @@ -1,4 +1,4 @@ {%- from "zabbix/map.jinja" import zabbix with context %} -{%- for k, v in zabbix.server.config.items() %} -{{ k }}={{ v }} +{%- for key, value in zabbix.server.config.items() %} +{{ key }}={{ value }} {%- endfor %}