diff options
author | 2018-02-15 08:57:47 +0000 | |
---|---|---|
committer | 2018-02-21 17:37:05 +0000 | |
commit | cdcfb32414af77abac43440e0ab5b448e72d83e5 (patch) | |
tree | 600f06e58f54db46be3072794237762eb02e72e1 /xci/installer | |
parent | 7c37b9ac8715ebedecf903f9de67c55830fb5b90 (diff) |
xci: roles: configure-network: Determine host NIC from Ansible facts
Hardcoding the interface as a variable is very fragile since it varies
from host to host. We could use the Ansible facts to find out the
interface name and then use that to configure all the VLANs and
networking.
Change-Id: Ie7e2409d638625b9bede23b6c1fe33dc36f81840
Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/installer')
-rw-r--r-- | xci/installer/kubespray/playbooks/group_vars/all | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xci/installer/kubespray/playbooks/group_vars/all b/xci/installer/kubespray/playbooks/group_vars/all index 06dccb68..d2c36bfc 100644 --- a/xci/installer/kubespray/playbooks/group_vars/all +++ b/xci/installer/kubespray/playbooks/group_vars/all @@ -10,7 +10,7 @@ keepalived_sync_groups: instances: - external -haproxy_keepalived_external_interface: "{{ interface }}" +haproxy_keepalived_external_interface: "{{ ansible_default_ipv4.interface }}" haproxy_keepalived_authentication_password: 'keepalived' keepalived_instances: external: |