diff --git a/CICD/ansible_create_cluster_script.sh b/CICD/ansible_create_cluster_script.sh index a1499f72d3d19938e2a15fe143e7dabe7b836f5b..ad1d82091bdb54c12750c0c916a61ab2cf65be09 100755 --- a/CICD/ansible_create_cluster_script.sh +++ b/CICD/ansible_create_cluster_script.sh @@ -3,9 +3,12 @@ set -e export ANSIBLE_HOST_KEY_CHECKING=False source ./$NECTAR_ALLOCATION-openrc.sh +openstack stack list cd CICD +STACKNAME=CICD$STACKNAME + echo "[ansible_create_cluster_script] Prefixing the Stackname with CICD because heatcicdwrapper does he same" python3 ../scripts/make_inventory.py static CICD$STACKNAME | tee ./files/inventory.$STACKNAME && chmod 755 ./files/inventory.$STACKNAME grep -qv "I could not find any resouces tagged with project_name:" ./files/inventory.$STACKNAME #fail if inventory file is empty