Merge pull request #3 from mpawlack/fix_template
fix 2 errors in jinja template
This commit is contained in:
commit
772c5a5b5b
@ -38,7 +38,7 @@ static_ipaddress {
|
|||||||
|
|
||||||
# static routes
|
# static routes
|
||||||
{%- if 'static_routes' in salt['pillar.get']('keepalived') %}
|
{%- if 'static_routes' in salt['pillar.get']('keepalived') %}
|
||||||
static_route {
|
static_routes {
|
||||||
{%- for route in salt['pillar.get']('keepalived:static_routes', {}).iteritems() %}
|
{%- for route in salt['pillar.get']('keepalived:static_routes', {}).iteritems() %}
|
||||||
{{ route}}
|
{{ route}}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
@ -189,7 +189,7 @@ vrrp_instance {{ instance[1].get('name', instance[0]) }} {
|
|||||||
}
|
}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if 'virtual_routes' in instance[1] %}
|
{%- if 'virtual_routes' in instance[1] %}
|
||||||
virtual_route {
|
virtual_routes {
|
||||||
{%- for virtual_route in instance[1].virtual_routes %}
|
{%- for virtual_route in instance[1].virtual_routes %}
|
||||||
{{ virtual_route }}
|
{{ virtual_route }}
|
||||||
{%- endfor%}
|
{%- endfor%}
|
||||||
|
Loading…
Reference in New Issue
Block a user