Read $DEPLOYMENT_MODE from os-apply-config instead of environment variable

This commit is contained in:
James Slagle 2014-10-15 15:41:27 -04:00
parent 42c5794716
commit 982a6c2d5b

View File

@ -76,7 +76,7 @@ glance image-update --property type='overcloud provisioning' overcloud-swift-sto
glance image-update --property type='overcloud provisioning ramdisk' overcloud-swift-storage-initrd
glance image-update --property type='overcloud provisioning kernel' overcloud-swift-storage-vmlinuz
DEPLOYMENT_MODE=${DEPLOYMENT_MODE:-"poc"}
DEPLOYMENT_MODE=$(os-apply-config --key deployment-mode --key-default 'poc')
if [ "$DEPLOYMENT_MODE" = "poc" ]; then
if ! nova flavor-show baremetal 2>&1 1>/dev/null; then
nova flavor-create baremetal auto 4096 30 1