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 %}