diff --git a/stack.sh b/stack.sh index f248b6eeec..1f5fd49beb 100755 --- a/stack.sh +++ b/stack.sh @@ -957,6 +957,18 @@ if is_service_enabled nova; then iniset $NOVA_CONF DEFAULT powervm_img_remote_path $POWERVM_IMG_REMOTE_PATH iniset $NOVA_CONF DEFAULT powervm_img_local_path $POWERVM_IMG_LOCAL_PATH + # vSphere API + # ------- + + elif [ "$VIRT_DRIVER" = 'vsphere' ]; then + echo_summary "Using VMware vCenter driver" + iniset $NOVA_CONF DEFAULT compute_driver "vmwareapi.VMwareVCDriver" + VMWAREAPI_USER=${VMWAREAPI_USER:-"root"} + iniset $NOVA_CONF DEFAULT vmwareapi_host_ip "$VMWAREAPI_IP" + iniset $NOVA_CONF DEFAULT vmwareapi_host_username "$VMWAREAPI_USER" + iniset $NOVA_CONF DEFAULT vmwareapi_host_password "$VMWAREAPI_PASSWORD" + iniset $NOVA_CONF DEFAULT vmwareapi_cluster_name "$VMWAREAPI_CLUSTER" + # Default # ------- diff --git a/stackrc b/stackrc index c55e8dc78e..f99eab1852 100644 --- a/stackrc +++ b/stackrc @@ -199,6 +199,8 @@ case "$VIRT_DRIVER" in IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz"};; esac ;; + vsphere) + IMAGE_URLS="";; *) # otherwise, use the uec style image (with kernel, ramdisk, disk) DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.1-x86_64-uec} IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz"};;