diff options
author | Bin Yang <bin.yang@windriver.com> | 2019-06-19 22:46:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-06-19 22:46:10 +0000 |
commit | c1963d4331fce447d93131d731e1f261c175de87 (patch) | |
tree | 9b0e20ecda60bba4c4e90adad039b7546788463f /kud/hosting_providers/baremetal/aio.sh | |
parent | d5a34e001fe894b7f90d17d4a53dda53d2e8ef81 (diff) | |
parent | 8f5b4cdbe151b509fc1309e1bc4fc19b4bc5950c (diff) |
Merge "Make ovn-central network interface configurable"
Diffstat (limited to 'kud/hosting_providers/baremetal/aio.sh')
-rwxr-xr-x | kud/hosting_providers/baremetal/aio.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kud/hosting_providers/baremetal/aio.sh b/kud/hosting_providers/baremetal/aio.sh index 416a1fef..c9903cd3 100755 --- a/kud/hosting_providers/baremetal/aio.sh +++ b/kud/hosting_providers/baremetal/aio.sh @@ -15,9 +15,13 @@ set -o pipefail aio_dir=$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd) cd ${aio_dir}/../vagrant +# For aio inventory by default get ovn central ip from local host default interface. +# This variable used only in this file, but env variable defined to enable user to override it prior calling aio.sh. +OVN_CENTRAL_IP_ADDRESS=${OVN_CENTRAL_IP_ADDRESS:-$(hostname -I | cut -d ' ' -f 1)} + cat <<EOL > inventory/hosts.ini [all] -localhost +localhost ansible_ssh_host=${OVN_CENTRAL_IP_ADDRESS} ansible_ssh_port=22 [kube-master] localhost |