diff --git a/docs/calico_peer_example/new-york.yml b/docs/calico_peer_example/new-york.yml index dd4d8125b7bf6cb1f0da9bff8e6fbefb7f5c472d..af497a9a91073287b0cdbcc60f5849f825d6b8f8 100644 --- a/docs/calico_peer_example/new-york.yml +++ b/docs/calico_peer_example/new-york.yml @@ -2,8 +2,10 @@ # peers: # - router_id: "10.99.0.34" # as: "65xxx" +# sourceaddress: "None" # - router_id: "10.99.0.35" # as: "65xxx" +# sourceaddress: "None" # loadbalancer_apiserver: # address: "10.99.0.44" diff --git a/docs/calico_peer_example/paris.yml b/docs/calico_peer_example/paris.yml index 6d4ab417971e36af77c499ce5e93f0f94df4e45b..1768e03058976be3cd8c7282f4651a4446187a16 100644 --- a/docs/calico_peer_example/paris.yml +++ b/docs/calico_peer_example/paris.yml @@ -2,8 +2,10 @@ # peers: # - router_id: "10.99.0.2" # as: "65xxx" +# sourceaddress: "None" # - router_id: "10.99.0.3" # as: "65xxx" +# sourceaddress: "None" # loadbalancer_apiserver: # address: "10.99.0.21" diff --git a/roles/network_plugin/calico/tasks/install.yml b/roles/network_plugin/calico/tasks/install.yml index e2ad4a78cd90a3cb16e352fbfb899362069aa322..076b8b50a5c49b2da16a5f2f8168fbe4aea7aae2 100644 --- a/roles/network_plugin/calico/tasks/install.yml +++ b/roles/network_plugin/calico/tasks/install.yml @@ -418,7 +418,8 @@ "spec": { "asNumber": "{{ item.as }}", "node": "{{ inventory_hostname }}", - "peerIP": "{{ item.router_id }}" + "peerIP": "{{ item.router_id }}", + "sourceAddress": "{{ item.sourceaddress|default('UseNodeIP') }}" }} register: output retries: 4