Added upstreams option to _base template

pull/2/head
Òscar Casajuana 2015-10-03 18:33:07 +02:00
parent 95e2cb5f12
commit b71914ecd1
1 changed files with 13 additions and 0 deletions

View File

@ -5,6 +5,19 @@
# {{ ansible_managed }}
#
{% if item.upstreams is defined and item.upstreams is iterable %}
{% for upstream in item.upstreams %}
upstream {{ upstream.name }} {
server {{ upstream.server }};
{% if upstream.params is defined and upstream.params is iterable %}
{% for param in upstream.params %}
{{ param }}
{% endfor %}
{% endif %}
}
{% endfor %}
{% endif %}
#
# HTTP
#