From 5dbb5f8446b68419fd44a748dfcefdaebf3fc4b5 Mon Sep 17 00:00:00 2001 From: wrider Date: Wed, 12 Jun 2019 09:27:43 -0400 Subject: [PATCH] Change method for getting floating IP addr Previous method fo rgetting floating IP address is OpenStack specific, not working for virtualization platforms such as VirtualBox. Switching to a more generic method. Change-Id: I65ba0f3ad7c105a24a399cf40040806f36c821bf Signed-off-by: wrider --- ric-infra/00-Kubernetes/bin/gen-cloud-init.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ric-infra/00-Kubernetes/bin/gen-cloud-init.sh b/ric-infra/00-Kubernetes/bin/gen-cloud-init.sh index b0270c40..61603ba8 100755 --- a/ric-infra/00-Kubernetes/bin/gen-cloud-init.sh +++ b/ric-infra/00-Kubernetes/bin/gen-cloud-init.sh @@ -126,7 +126,8 @@ sed -e "s/__k8s_cni_version__/${INFRA_CNI_VERSION}/g" "$filename" > tmp && mv tm sed -e "s/__helm_version__/${INFRA_HELM_VERSION}/g" "$filename" > tmp && mv tmp "$filename" sed -e "s/__k8s_mst_private_ip_addr__/\$(hostname -I)/g" "$filename" > tmp && mv tmp "$filename" sed -e "s/__host_private_ip_addr__/\$(hostname -I)/g" "$filename" > tmp && mv tmp "$filename" -sed -e "s/__k8s_mst_floating_ip_addr__/\$(ec2metadata --public-ipv4)/g" "$filename" > tmp && mv tmp "$filename" +#sed -e "s/__k8s_mst_floating_ip_addr__/\$(ec2metadata --public-ipv4)/g" "$filename" > tmp && mv tmp "$filename" +sed -e "s/__k8s_mst_floating_ip_addr__/\$(curl ifconfig.co)/g" "$filename" > tmp && mv tmp "$filename" sed -e "s/__stack_name__/\$(hostname)/g" "$filename" > tmp && mv tmp "$filename" #echo "__mtu__" > /opt/config/mtu.txt #echo "__cinder_volume_id__" > /opt/config/cinder_volume_id.txt -- 2.16.6