Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions templates/frontend.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ frontend {{ item.name }} {%if item.ip is defined %}{{ item.ip }}{% endif %}{%if

{% if item.bind is defined -%}
{%- for bind in item.bind -%}
bind {{ bind }}{% if item.ssl is defined %}{% if item.ssl.cert is defined %} ssl crt {{ item.ssl.cert }}{% if item.ssl.ciphers is defined %} ciphers {{ item.ssl.ciphers }}{% endif %}{% endif %}{% endif %}
bind {{ bind }} {% if item.ssl is defined %} {% if item.ssl.cert is defined %} ssl crt {{ item.ssl.cert }} {% if item.ssl.ciphers is defined %} ciphers {{ item.ssl.ciphers }} {% endif %}{% endif %}{% endif %} {% if item.params is defined %}{% for param in item.params %} {{ param }} {% endfor %} {% endif %}

{% endfor -%}
{% endif -%}
Expand Down Expand Up @@ -125,7 +125,8 @@ frontend {{ item.name }} {%if item.ip is defined %}{{ item.ip }}{% endif %}{%if

{%- if item.use_backend is defined -%}
{%- for backend in item.use_backend -%}
use_backend {{ backend.name }} {{ backend.condition }}
use_backend {{ backend.name }} {% if 'condition' in backend %} {{ backend.condition }} {% endif %}

{% endfor -%}
{% endif -%}

Expand Down
2 changes: 2 additions & 0 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ empty: true
# ssl:
# cert: /etc/ssl/private/cert.pem
# ciphers: 'RC4-SHA:AES128-SHA:AES:!ADH:!aNULL:!DH:!EDH:!eNULL'
# params:
# - ca-file /etc/ssl/private/certCA.pem
# maxconn:
# monitor:
# uri:
Expand Down