allow for opt_tls_san to be undefined, since it's optionally defined (#456)

Signed-off-by: Jonathan Hanson <jonathan@jonathan-hanson.org>
This commit is contained in:
Jonathan Hanson
2025-10-24 10:03:47 -07:00
committed by GitHub
parent 43c2fde96e
commit 7209114690

View File

@@ -27,5 +27,5 @@ ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/local/bin/k3s server --data-dir {{ k3s_server_location }} {% if cluster_init == true %}--cluster-init {% endif %} \
{% if join == true %}--server https://{{ api_endpoint }}:{{ api_port }} {% endif %} \
{{ opt_tls_san }} \
{{ extra_server_args }}
{{ opt_tls_san | default('') }} \
{{ extra_server_args }}