[VMware] inital commit
This commit unhardcode vmware related options.
Change-Id: I694641363ce66f1992be4f3f5c18c72445b7613d
Related-Prod: PROD-21447
diff --git a/metadata/service/control/cluster.yml b/metadata/service/control/cluster.yml
index 076f639..d50efba 100644
--- a/metadata/service/control/cluster.yml
+++ b/metadata/service/control/cluster.yml
@@ -1,6 +1,7 @@
applications:
- glance
classes:
+- service.glance.control.storage.file
- service.glance.support
parameters:
_param:
@@ -53,8 +54,6 @@
user: openstack
password: ${_param:rabbitmq_openstack_password}
virtual_host: '/openstack'
- storage:
- engine: file
cache:
engine: memcached
members:
diff --git a/metadata/service/control/container.yml b/metadata/service/control/container.yml
index 7e19b51..a482b9f 100644
--- a/metadata/service/control/container.yml
+++ b/metadata/service/control/container.yml
@@ -1,3 +1,5 @@
+classes:
+- service.glance.control.storage.file
parameters:
_param:
keystone_glance_endpoint_type: internalURL
@@ -42,7 +44,5 @@
user: openstack
password: ${_param:rabbitmq_openstack_password}
virtual_host: '/openstack'
- storage:
- engine: file
cache:
- engine: memcached
\ No newline at end of file
+ engine: memcached
diff --git a/metadata/service/control/single.yml b/metadata/service/control/single.yml
index 30bfed8..0e16de5 100644
--- a/metadata/service/control/single.yml
+++ b/metadata/service/control/single.yml
@@ -1,6 +1,7 @@
applications:
- glance
classes:
+- service.glance.control.storage.file
- service.glance.support
parameters:
_param:
@@ -51,5 +52,3 @@
user: openstack
password: ${_param:rabbitmq_openstack_password}
virtual_host: '/openstack'
- storage:
- engine: file
diff --git a/metadata/service/control/storage/file.yml b/metadata/service/control/storage/file.yml
new file mode 100644
index 0000000..9f54585
--- /dev/null
+++ b/metadata/service/control/storage/file.yml
@@ -0,0 +1,6 @@
+parameters:
+ glance:
+ server:
+ storage:
+ engine: file
+ default_store: file
diff --git a/metadata/service/control/storage/vmware.yml b/metadata/service/control/storage/vmware.yml
new file mode 100644
index 0000000..b6f286e
--- /dev/null
+++ b/metadata/service/control/storage/vmware.yml
@@ -0,0 +1,17 @@
+parameters:
+ glance:
+ server:
+ storage:
+ engine: vmware
+ default_store: vsphere
+ vmware:
+ enabled: true
+ server_host: ${_param:openstack_vcenter_host}
+ server_username: ${_param:openstack_vcenter_username}
+ server_password: ${_param:openstack_vcenter_password}
+ insecure: true
+ datastores:
+ storage01:
+ enabled: true
+ name: ${_param:openstack_vcenter_storage_name}
+ path: ${_param:openstack_vcenter_datacenter_name}