Browse code

Merge "fix support for VMware vCenter Driver"

Jenkins authored on 2013/04/26 21:38:36
Showing 2 changed files
... ...
@@ -957,6 +957,18 @@ if is_service_enabled nova; then
957 957
         iniset $NOVA_CONF DEFAULT powervm_img_remote_path $POWERVM_IMG_REMOTE_PATH
958 958
         iniset $NOVA_CONF DEFAULT powervm_img_local_path $POWERVM_IMG_LOCAL_PATH
959 959
 
960
+    # vSphere API
961
+    # -------
962
+
963
+    elif [ "$VIRT_DRIVER" = 'vsphere' ]; then
964
+        echo_summary "Using VMware vCenter driver"
965
+        iniset $NOVA_CONF DEFAULT compute_driver "vmwareapi.VMwareVCDriver"
966
+        VMWAREAPI_USER=${VMWAREAPI_USER:-"root"}
967
+        iniset $NOVA_CONF DEFAULT vmwareapi_host_ip "$VMWAREAPI_IP"
968
+        iniset $NOVA_CONF DEFAULT vmwareapi_host_username "$VMWAREAPI_USER"
969
+        iniset $NOVA_CONF DEFAULT vmwareapi_host_password "$VMWAREAPI_PASSWORD"
970
+        iniset $NOVA_CONF DEFAULT vmwareapi_cluster_name "$VMWAREAPI_CLUSTER"
971
+
960 972
     # Default
961 973
     # -------
962 974
 
... ...
@@ -199,6 +199,8 @@ case "$VIRT_DRIVER" in
199 199
                 IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz"};;
200 200
         esac
201 201
         ;;
202
+    vsphere)
203
+        IMAGE_URLS="";;
202 204
     *) # otherwise, use the uec style image (with kernel, ramdisk, disk)
203 205
         DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-cirros-0.3.1-x86_64-uec}
204 206
         IMAGE_URLS=${IMAGE_URLS:-"http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz"};;