default value for 'peer_with_router'

This commit is contained in:
Smaine Kahlouch
2015-11-02 13:41:03 +01:00
parent f6e4cc530c
commit 3fb9101e40
2 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ User=root
PermissionsStartOnly=true
ExecStartPre={{ bin_dir }}/calicoctl checksystem --fix
{% if inventory_hostname in groups['kube-node'] %}
{% if peer_with_router %}
{% if peer_with_router|default(false) %}
ExecStart={{ bin_dir }}/calicoctl node --ip=${DEFAULT_IPV4} --as={{ local_as }} --kubernetes
{% else %}
ExecStart={{ bin_dir }}/calicoctl node --ip=${DEFAULT_IPV4} --kubernetes