Merge "Cleanup docker services templates"
[apex-tripleo-heat-templates.git] / puppet / services / cinder-backend-scaleio.yaml
1 # Copyright (c) 2016-2017 Dell Inc, or its subsidiaries.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 heat_template_version: ocata
15
16 description: >
17   Openstack Cinder Dell EMC ScaleIO backend
18
19 parameters:
20   CinderEnableScaleIOBackend:
21     type: boolean
22     default: true
23   CinderScaleIOBackendName:
24     type: string
25     default: 'tripleo_scaleio'
26   CinderScaleIOSanIp:
27     type: string
28     default: ''
29   CinderScaleIOSanLogin:
30     type: string
31     default: ''
32   CinderScaleIOSanPassword:
33     type: string
34     default: ''
35     hidden: true
36   CinderScaleIORestServerPort:
37     type: number
38     default: 443
39   CinderScaleIOVerifyServerCertificate:
40     type: boolean
41     default: false
42   CinderScaleIOServerCertificatePath:
43     type: string
44     default: ''
45   CinderScaleIOProtectionDomainId:
46     type: string
47     default: ''
48   CinderScaleIOProtectionDomainName:
49     type: string
50     default: ''
51   CinderScaleIOStoragePoolId:
52     type: string
53     default: ''
54   CinderScaleIOStoragePoolName:
55     type: string
56     default: ''
57   CinderScaleIOStoragePools:
58     type: string
59     default: ''
60   CinderScaleIORoundVolumeCapacity:
61     type: boolean
62     default: true
63   CinderScaleIOUnmapVolumeBeforeDeletion:
64     type: boolean
65     default: false
66   CinderScaleIOMaxOverSubscriptionRatio:
67     type: string
68     default: ''
69   CinderScaleIOSanThinProvision:
70     type: boolean
71     default: true
72   ServiceNetMap:
73     default: {}
74     description: Mapping of service_name -> network name. Typically set
75                  via parameter_defaults in the resource registry.  This
76                  mapping overrides those in ServiceNetMapDefaults.
77     type: json
78   DefaultPasswords:
79     default: {}
80     type: json
81   EndpointMap:
82     default: {}
83     type: json
84     description: Mapping of service endpoint -> protocol. Typically set
85                  via parameter_defaults in the resource registry.
86
87 outputs:
88   role_data:
89     description: Role data for the Cinder Dell EMC ScaleIO backend.
90     value:
91       service_name: cinder_backend_scaleio
92       config_settings:
93         tripleo::profile::base::cinder::volume::cinder_enable_scaleio_backend: {get_param: CinderEnableScaleIOBackend}
94         cinder::backend::scaleio::volume_backend_name: {get_param: CinderScaleIOBackendName}
95         cinder::backend::scaleio::sio_login: {get_param: CinderScaleIOSanLogin}
96         cinder::backend::scaleio::sio_password: {get_param: CinderScaleIOSanPassword}
97         cinder::backend::scaleio::sio_server_hostname: {get_param: CinderScaleIOSanIp}
98         cinder::backend::scaleio::sio_server_port: {get_param: CinderScaleIORestServerPort}
99         cinder::backend::scaleio::sio_verify_server_certificate: {get_param: CinderScaleIOVerifyServerCertificate}
100         cinder::backend::scaleio::sio_server_certificate_path: {get_param: CinderScaleIOServerCertificatePath}
101         cinder::backend::scaleio::sio_protection_domain_name: {get_param: CinderScaleIOProtectionDomainName}
102         cinder::backend::scaleio::sio_protection_domain_id: {get_param: CinderScaleIOProtectionDomainId}
103         cinder::backend::scaleio::sio_storage_pool_id: {get_param: CinderScaleIOStoragePoolId}
104         cinder::backend::scaleio::sio_storage_pool_name: {get_param: CinderScaleIOStoragePoolName}
105         cinder::backend::scaleio::sio_storage_pools: {get_param: CinderScaleIOStoragePools}
106         cinder::backend::scaleio::sio_round_volume_capacity: {get_param: CinderScaleIORoundVolumeCapacity}
107         cinder::backend::scaleio::sio_unmap_volume_before_deletion: {get_param: CinderScaleIOUnmapVolumeBeforeDeletion}
108         cinder::backend::scaleio::sio_max_over_subscription_ratio: {get_param: CinderScaleIOMaxOverSubscriptionRatio}
109         cinder::backend::scaleio::sio_thin_provision: {get_param: CinderScaleIOSanThinProvision}
110       step_config: |
111         include ::tripleo::profile::base::cinder::volume