You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My configuration uses multiple values for TLSAccept=psk,cert The current template disallows this, looks incorrect, and results in the agent failing on start.
{{ (zabbix_agent_tlsconnect is defined and zabbix_agent_tlsconnect is not none) | ternary('', '# ') }}TLSAccept={{ zabbix_agent_tlsconnect | default('') }}
should be:
{{ (zabbix_agent_tlsconnect is defined and zabbix_agent_tlsconnect is not none) | ternary('', '# ') }}TLSConnect={{ zabbix_agent_tlsconnect | default('') }}
{{ (zabbix_agent_tlsaccept is defined and zabbix_agent_tlsaccept is not none) | ternary('', '# ') }}TLSAccept={{ zabbix_agent_tlsaccept | default('') }}
SUMMARY
My configuration uses multiple values for
TLSAccept=psk,cert
The current template disallows this, looks incorrect, and results in the agent failing on start.https://github.com/ansible-collections/community.zabbix/blob/main/roles/zabbix_agent/templates/agent.conf.j2#L124
should be:
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT / Zabbix Version
Zabbix Agent 2 (6.4.16)
STEPS TO REPRODUCE
Use role
community.zabbix.zabbix_agent
with variablezabbix_agent_tlsaccept: "psk,cert"
EXPECTED RESULTS
TLSAccept=psk,cert
ACTUAL RESULTS
TLSAccept=psk
The text was updated successfully, but these errors were encountered: