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
{{ (zabbix_agent_tlspskfile is defined and zabbix_agent_tlspskfile is not none) | ternary('', '# ') }}TLSPSKFile={{ zabbix_agent_tlspskfile | default('') }}
There is only check whether this variable is not defined or null. This leads to invalid configuration when using zabbix_agent_tlsconnect or zabbix_agent_tlsaccept is set to for example cert:
cannot use encryption configuration: TLSPSKFile configuration parameter set without PSK being used
ISSUE TYPE
Bug Report
COMPONENT NAME
Zabbix agent role
ANSIBLE VERSION
2.17.0
OS / ENVIRONMENT / Zabbix Version
Zabbix 7.0
STEPS TO REPRODUCE
Try to configure zabbix agent with the role using "cert" mode. Role completes successfully but zabbix-agent2 service fails instantly
EXPECTED RESULTS
TLSPSKFile is not set when zabbix_agent_tlsconnect and/or zabbix_agent_tlsconnect is set to something different than psk.
ACTUAL RESULTS
cannot use encryption configuration: TLSPSKFile configuration parameter set without PSK being used
The text was updated successfully, but these errors were encountered:
SUMMARY
Zabbix agent role has a default value for
zabbix_agent_tlspskfile
set. Then when templating.conf
filecommunity.zabbix/roles/zabbix_agent/templates/agent.conf.j2
Line 138 in 45ed88b
There is only check whether this variable is not defined or null. This leads to invalid configuration when using
zabbix_agent_tlsconnect
orzabbix_agent_tlsaccept
is set to for examplecert
:ISSUE TYPE
COMPONENT NAME
Zabbix agent role
ANSIBLE VERSION
OS / ENVIRONMENT / Zabbix Version
Zabbix 7.0
STEPS TO REPRODUCE
Try to configure zabbix agent with the role using "cert" mode. Role completes successfully but zabbix-agent2 service fails instantly
EXPECTED RESULTS
TLSPSKFile is not set when
zabbix_agent_tlsconnect
and/orzabbix_agent_tlsconnect
is set to something different thanpsk
.ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: