diff options
author | Christian Breunig <christian@breunig.cc> | 2024-12-18 19:37:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-18 19:37:22 +0100 |
commit | fdb9ce311ae485bcdaa59c5653c631df7efd3e29 (patch) | |
tree | 05c1684c9c1e000ed7255c519fa2f434e3a81e7d /data | |
parent | 11e89b1a1295b21d8c3b3e3d556ecb00506856ab (diff) | |
parent | 73b9eba81999744ba0adf4c252ccdb2bd0bd2a19 (diff) | |
download | vyos-1x-fdb9ce311ae485bcdaa59c5653c631df7efd3e29.tar.gz vyos-1x-fdb9ce311ae485bcdaa59c5653c631df7efd3e29.zip |
Merge pull request #4233 from HollyGurza/T6934
T6934: Add preshared key for zabbix-agent monitoring service
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/zabbix-agent/zabbix-agent.conf.j2 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/data/templates/zabbix-agent/zabbix-agent.conf.j2 b/data/templates/zabbix-agent/zabbix-agent.conf.j2 index e6dcef872..b8df2d177 100644 --- a/data/templates/zabbix-agent/zabbix-agent.conf.j2 +++ b/data/templates/zabbix-agent/zabbix-agent.conf.j2 @@ -75,3 +75,16 @@ Include={{ directory }}/*.conf Timeout={{ timeout }} {% endif %} +{% if authentication is vyos_defined and authentication.mode is vyos_defined %} +{% if authentication.mode == "pre-shared-secret" %} +TLSConnect=psk +TLSAccept=psk +{% endif %} +{% if authentication.psk.secret is vyos_defined %} +TLSPSKFile={{ service_psk_file }} +{% endif %} +{% if authentication.psk.id is vyos_defined %} +TLSPSKIdentity={{ authentication.psk.id }} +{% endif %} +{% endif %} + |