Merge pull request #2257 from rzenker/tb/baremetal-tweaks

baremetal tweaks
This commit is contained in:
Aivars Sterns
2018-02-08 15:48:55 +00:00
committed by GitHub
7 changed files with 11 additions and 8 deletions

View File

@@ -14,6 +14,6 @@ data:
cluster_type: "kubespray,bgp"
{% endif %}
calico_backend: "bird"
{%- if inventory_hostname in groups['k8s-cluster'] and peer_with_router|default(false) %}
as: "{{ local_as }}"
{% endif -%}
{% if inventory_hostname in groups['k8s-cluster'] and peer_with_router|default(false) %}
as: "{{ local_as|default(global_as_num) }}"
{% endif -%}

View File

@@ -6,7 +6,7 @@
{% if cloud_provider is defined %}
"nodename": "{{ calico_kubelet_name.stdout }}",
{% else %}
"nodename": "{{ ansible_hostname }}",
"nodename": "{{ inventory_hostname }}",
{% endif %}
"type": "calico",
"etcd_endpoints": "{{ etcd_access_addresses }}",