summaryrefslogtreecommitdiff
path: root/data/templates/ocserv/ocserv_config.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-13 22:51:33 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-13 22:51:33 +0200
commitfc36d67b051bad776a5b1d6e9a04f1205487f01f (patch)
treecde0812400ef0857d108999ff350d6582b912a49 /data/templates/ocserv/ocserv_config.tmpl
parent2b066e2cb8fe5340c3f32e4c29c75d4f3282363f (diff)
downloadvyos-1x-fc36d67b051bad776a5b1d6e9a04f1205487f01f.tar.gz
vyos-1x-fc36d67b051bad776a5b1d6e9a04f1205487f01f.zip
ocserv: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/ocserv/ocserv_config.tmpl')
-rw-r--r--data/templates/ocserv/ocserv_config.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/templates/ocserv/ocserv_config.tmpl b/data/templates/ocserv/ocserv_config.tmpl
index 19045c4b4..05b85a610 100644
--- a/data/templates/ocserv/ocserv_config.tmpl
+++ b/data/templates/ocserv/ocserv_config.tmpl
@@ -20,15 +20,15 @@ auth = "plain[/run/ocserv/ocpasswd]"
auth = "plain[/run/ocserv/ocpasswd]"
{% endif %}
-{% if ssl.certificate is defined %}
+{% if ssl.certificate is vyos_defined %}
server-cert = /run/ocserv/cert.pem
server-key = /run/ocserv/cert.key
-{% if ssl.passphrase is defined %}
+{% if ssl.passphrase is vyos_defined %}
key-pin = {{ ssl.passphrase }}
{% endif %}
{% endif %}
-{% if ssl.ca_certificate is defined %}
+{% if ssl.ca_certificate is vyos_defined %}
ca-cert = /run/ocserv/ca.pem
{% endif %}