File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -948,6 +948,18 @@ if is_service_enabled nova; then
948948 iniset $NOVA_CONF DEFAULT powervm_img_remote_path $POWERVM_IMG_REMOTE_PATH
949949 iniset $NOVA_CONF DEFAULT powervm_img_local_path $POWERVM_IMG_LOCAL_PATH
950950
951+ # vSphere API
952+ # -------
953+
954+ elif [ " $VIRT_DRIVER " = ' vsphere' ]; then
955+ echo_summary " Using VMware vCenter driver"
956+ iniset $NOVA_CONF DEFAULT compute_driver " vmwareapi.VMwareVCDriver"
957+ VMWAREAPI_USER=${VMWAREAPI_USER:- " root" }
958+ iniset $NOVA_CONF DEFAULT vmwareapi_host_ip " $VMWAREAPI_IP "
959+ iniset $NOVA_CONF DEFAULT vmwareapi_host_username " $VMWAREAPI_USER "
960+ iniset $NOVA_CONF DEFAULT vmwareapi_host_password " $VMWAREAPI_PASSWORD "
961+ iniset $NOVA_CONF DEFAULT vmwareapi_cluster_name " $VMWAREAPI_CLUSTER "
962+
951963 # Default
952964 # -------
953965
Original file line number Diff line number Diff line change @@ -199,6 +199,8 @@ case "$VIRT_DRIVER" in
199199 IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz"};;
200200 esac
201201 ;;
202+ vsphere)
203+ IMAGE_URLS="";;
202204 *) # otherwise, use the uec style image (with kernel, ramdisk, disk)
203205 DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.1-x86_64-uec}
204206 IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz"};;
You can’t perform that action at this time.
0 commit comments