Fix jinja2 syntax to expand a variable

This commit is contained in:
Jason Rothstein 2021-10-31 01:45:55 -05:00
parent 752468e5d9
commit e15987f2dc

View File

@ -22,12 +22,12 @@ character-set-server = utf8mb4
ssl-ca=/etc/pki/tls/certs/ca-bundle.crt ssl-ca=/etc/pki/tls/certs/ca-bundle.crt
{% for certificate in certificates.files %} {% for certificate in certificates.files %}
{% if certificate.path is regex('/pubcert.pem$') %} {% if certificate.path is regex('/pubcert.pem$') %}
ssl-cert={% certificate.path %} ssl-cert={{ certificate.path }}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% for certificate in certificates.files %} {% for certificate in certificates.files %}
{% if certificate.path is regex('/privkey.pem$') %} {% if certificate.path is regex('/privkey.pem$') %}
ssl-key={% certificate.path %} ssl-key={{ certificate.path }}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
tls-version=TLSv1.2,TLSv1.3 tls-version=TLSv1.2,TLSv1.3