Change flat network name for nosdn fdio scenario
[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: pike
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   ServiceData:
73     default: {}
74     description: Dictionary packing service data
75     type: json
76   ServiceNetMap:
77     default: {}
78     description: Mapping of service_name -> network name. Typically set
79                  via parameter_defaults in the resource registry.  This
80                  mapping overrides those in ServiceNetMapDefaults.
81     type: json
82   DefaultPasswords:
83     default: {}
84     type: json
85   RoleName:
86     default: ''
87     description: Role name on which the service is applied
88     type: string
89   RoleParameters:
90     default: {}
91     description: Parameters specific to the role
92     type: json
93   EndpointMap:
94     default: {}
95     type: json
96     description: Mapping of service endpoint -> protocol. Typically set
97                  via parameter_defaults in the resource registry.
98
99 outputs:
100   role_data:
101     description: Role data for the Cinder Dell EMC ScaleIO backend.
102     value:
103       service_name: cinder_backend_scaleio
104       config_settings:
105         tripleo::profile::base::cinder::volume::cinder_enable_scaleio_backend: {get_param: CinderEnableScaleIOBackend}
106         cinder::backend::scaleio::volume_backend_name: {get_param: CinderScaleIOBackendName}
107         cinder::backend::scaleio::sio_login: {get_param: CinderScaleIOSanLogin}
108         cinder::backend::scaleio::sio_password: {get_param: CinderScaleIOSanPassword}
109         cinder::backend::scaleio::sio_server_hostname: {get_param: CinderScaleIOSanIp}
110         cinder::backend::scaleio::sio_server_port: {get_param: CinderScaleIORestServerPort}
111         cinder::backend::scaleio::sio_verify_server_certificate: {get_param: CinderScaleIOVerifyServerCertificate}
112         cinder::backend::scaleio::sio_server_certificate_path: {get_param: CinderScaleIOServerCertificatePath}
113         cinder::backend::scaleio::sio_protection_domain_name: {get_param: CinderScaleIOProtectionDomainName}
114         cinder::backend::scaleio::sio_protection_domain_id: {get_param: CinderScaleIOProtectionDomainId}
115         cinder::backend::scaleio::sio_storage_pool_id: {get_param: CinderScaleIOStoragePoolId}
116         cinder::backend::scaleio::sio_storage_pool_name: {get_param: CinderScaleIOStoragePoolName}
117         cinder::backend::scaleio::sio_storage_pools: {get_param: CinderScaleIOStoragePools}
118         cinder::backend::scaleio::sio_round_volume_capacity: {get_param: CinderScaleIORoundVolumeCapacity}
119         cinder::backend::scaleio::sio_unmap_volume_before_deletion: {get_param: CinderScaleIOUnmapVolumeBeforeDeletion}
120         cinder::backend::scaleio::sio_max_over_subscription_ratio: {get_param: CinderScaleIOMaxOverSubscriptionRatio}
121         cinder::backend::scaleio::sio_thin_provision: {get_param: CinderScaleIOSanThinProvision}
122       step_config: |
123         include ::tripleo::profile::base::cinder::volume