Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / puppet / services / cinder-backend-dellsc.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 Storage Center backend
18
19 parameters:
20   CinderEnableDellScBackend:
21     type: boolean
22     default: true
23   CinderDellScBackendName:
24     type: string
25     default: 'tripleo_dellsc'
26   CinderDellScSanIp:
27     type: string
28   CinderDellScSanLogin:
29     type: string
30     default: 'Admin'
31   CinderDellScSanPassword:
32     type: string
33     hidden: true
34   CinderDellScSsn:
35     type: number
36     default: 64702
37   CinderDellScIscsiIpAddress:
38     type: string
39     default: ''
40   CinderDellScIscsiPort:
41     type: number
42     default: 3260
43   CinderDellScApiPort:
44     type: number
45     default: 3033
46   CinderDellScServerFolder:
47     type: string
48     default: 'dellsc_server'
49   CinderDellScVolumeFolder:
50     type: string
51     default: 'dellsc_volume'
52   CinderDellScSecondarySanIp:
53     type: string
54     default: ''
55   CinderDellScSecondarySanLogin:
56     type: string
57     default: 'Admin'
58   CinderDellScSecondarySanPassword:
59     type: string
60     hidden: true
61   CinderDellScSecondaryScApiPort:
62     type: number
63     default: 3033
64   CinderDellScExcludedDomainIp:
65     type: string
66     default: ''
67   ServiceData:
68     default: {}
69     description: Dictionary packing service data
70     type: json
71   ServiceNetMap:
72     default: {}
73     description: Mapping of service_name -> network name. Typically set
74                  via parameter_defaults in the resource registry.  This
75                  mapping overrides those in ServiceNetMapDefaults.
76     type: json
77   DefaultPasswords:
78     default: {}
79     type: json
80   RoleName:
81     default: ''
82     description: Role name on which the service is applied
83     type: string
84   RoleParameters:
85     default: {}
86     description: Parameters specific to the role
87     type: json
88   EndpointMap:
89     default: {}
90     type: json
91     description: Mapping of service endpoint -> protocol. Typically set
92                  via parameter_defaults in the resource registry.
93
94 outputs:
95   role_data:
96     description: Role data for the Cinder Dell EMC Storage Center backend.
97     value:
98       service_name: cinder_backend_dellsc
99       config_settings:
100                 tripleo::profile::base::cinder::volume::cinder_enable_dellsc_backend: {get_param: CinderEnableDellScBackend}
101                 cinder::backend::dellsc_iscsi::volume_backend_name: {get_param: CinderDellScBackendName}
102                 cinder::backend::dellsc_iscsi::san_ip: {get_param: CinderDellScSanIp}
103                 cinder::backend::dellsc_iscsi::san_login: {get_param: CinderDellScSanLogin}
104                 cinder::backend::dellsc_iscsi::san_password: {get_param: CinderDellScSanPassword}
105                 cinder::backend::dellsc_iscsi::dell_sc_ssn: {get_param: CinderDellScSsn}
106                 cinder::backend::dellsc_iscsi::iscsi_ip_address: {get_param: CinderDellScIscsiIpAddress}
107                 cinder::backend::dellsc_iscsi::iscsi_port: {get_param: CinderDellScIscsiPort}
108                 cinder::backend::dellsc_iscsi::dell_sc_api_port: {get_param: CinderDellScApiPort}
109                 cinder::backend::dellsc_iscsi::dell_sc_server_folder: {get_param: CinderDellScServerFolder}
110                 cinder::backend::dellsc_iscsi::dell_sc_volume_folder: {get_param: CinderDellScVolumeFolder}
111                 cinder::backend::dellsc_iscsi::secondary_san_ip: {get_param: CinderDellScSecondarySanIp}
112                 cinder::backend::dellsc_iscsi::secondary_san_login: {get_param: CinderDellScSecondarySanLogin}
113                 cinder::backend::dellsc_iscsi::secondary_san_password: {get_param: CinderDellScSecondarySanPassword}
114                 cinder::backend::dellsc_iscsi::secondary_sc_api_port: {get_param: CinderDellScSecondaryScApiPort}
115                 cinder::backend::dellsc_iscsi::excluded_domain_ip: {get_param: CinderDellScExcludedDomainIp}
116       step_config: |
117         include ::tripleo::profile::base::cinder::volume