Add manila.client system metadata
This patch adds manila client metadata with ability to create
share_types.
Also extend keystone.client system metadata to create os-client-config
for root user.
Change-Id: Ieb90b04e16c0decdd2a720257fd025f23e4d8293
Related-Prod: PROD-18221
diff --git a/keystone/client/os_client_config/admin_identity.yml b/keystone/client/os_client_config/admin_identity.yml
new file mode 100644
index 0000000..35cdf19
--- /dev/null
+++ b/keystone/client/os_client_config/admin_identity.yml
@@ -0,0 +1,19 @@
+parameters:
+ keystone:
+ client:
+ os_client_config:
+ enabled: true
+ cfgs:
+ root:
+ content:
+ clouds:
+ admin_identity:
+ region_name: ${_param:openstack_region}
+ identity_api_version: '3'
+ auth:
+ username: 'admin'
+ password: ${_param:keystone_admin_password}
+ user_domain_name: 'Default'
+ project_name: 'admin'
+ project_domain_name: 'Default'
+ auth_url: ${_param:keystone_service_protocol}://${_param:keystone_service_host}:5000
diff --git a/keystone/client/single.yml b/keystone/client/single.yml
index a79ed7e..ad2d55a 100644
--- a/keystone/client/single.yml
+++ b/keystone/client/single.yml
@@ -1,4 +1,5 @@
classes:
+- system.keystone.client.os_client_config.admin_identity
- system.keystone.client.service.cinder
- system.keystone.client.service.cinder2
- system.keystone.client.service.glance
diff --git a/manila/client/init.yml b/manila/client/init.yml
new file mode 100644
index 0000000..2fdadfd
--- /dev/null
+++ b/manila/client/init.yml
@@ -0,0 +1,4 @@
+classes:
+- service.manila.client
+- system.keystone.client.os_client_config.admin_identity
+- system.manila.client.share_type
diff --git a/manila/client/share_type/default.yml b/manila/client/share_type/default.yml
new file mode 100644
index 0000000..ba46948
--- /dev/null
+++ b/manila/client/share_type/default.yml
@@ -0,0 +1,13 @@
+parameters:
+ _param:
+ manila_share_type_default_extra_specs:
+ driver_handles_share_servers: False
+ manila:
+ client:
+ enabled: true
+ server:
+ admin_identity:
+ share_type:
+ default:
+ name: 'default'
+ extra_specs: ${_param:manila_share_type_default_extra_specs}
diff --git a/manila/client/share_type/init.yml b/manila/client/share_type/init.yml
new file mode 100644
index 0000000..ca69e74
--- /dev/null
+++ b/manila/client/share_type/init.yml
@@ -0,0 +1,2 @@
+classes:
+- system.manila.client.share_type.default