From ed2cf2f5e531cf0dfa5e61f9c0982b0da2540735 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Fri, 23 Sep 2022 10:53:05 +0200 Subject: Change clouds.yaml location It's a followup to 73a1812c5856be635827b6c6de81b39c22346457 addressing post-merge comments. Change-Id: Idd458ad6ef29e4eee2f9e537b4eae39d26eb9f64 --- tools/init-runonce | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/init-runonce b/tools/init-runonce index 5dd9c6b81..9a93216b5 100755 --- a/tools/init-runonce +++ b/tools/init-runonce @@ -48,15 +48,19 @@ for i in curl openstack; do done # Test for clouds.yaml -if [[ ! -f /etc/openstack/clouds.yaml ]]; then - echo "/etc/openstack/clouds.yaml is missing." +if [[ ! -f /etc/kolla/clouds.yaml ]]; then + echo "/etc/kolla/clouds.yaml is missing." echo " Did your deploy finish successfully?" exit 1 fi +# Specify clouds.yaml file to use +export OS_CLIENT_CONFIG_FILE=/etc/kolla/clouds.yaml + # Select admin account from clouds.yaml export OS_CLOUD=kolla-admin + # Test to ensure configure script is run only once if $KOLLA_OPENSTACK_COMMAND image list | grep -q cirros; then echo "This tool should only be run once per deployment." -- cgit v1.2.3