Merge "Sample environment generator"
[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   ServiceNetMap:
68     default: {}
69     description: Mapping of service_name -> network name. Typically set
70                  via parameter_defaults in the resource registry.  This
71                  mapping overrides those in ServiceNetMapDefaults.
72     type: json
73   DefaultPasswords:
74     default: {}
75     type: json
76   RoleName:
77     default: ''
78     description: Role name on which the service is applied
79     type: string
80   RoleParameters:
81     default: {}
82     description: Parameters specific to the role
83     type: json
84   EndpointMap:
85     default: {}
86     type: json
87     description: Mapping of service endpoint -> protocol. Typically set
88                  via parameter_defaults in the resource registry.
89
90 outputs:
91   role_data:
92     description: Role data for the Cinder Dell EMC Storage Center backend.
93     value:
94       service_name: cinder_backend_dellsc
95       config_settings:
96                 tripleo::profile::base::cinder::volume::cinder_enable_dellsc_backend: {get_param: CinderEnableDellScBackend}
97                 cinder::backend::dellsc_iscsi::volume_backend_name: {get_param: CinderDellScBackendName}
98                 cinder::backend::dellsc_iscsi::san_ip: {get_param: CinderDellScSanIp}
99                 cinder::backend::dellsc_iscsi::san_login: {get_param: CinderDellScSanLogin}
100                 cinder::backend::dellsc_iscsi::san_password: {get_param: CinderDellScSanPassword}
101                 cinder::backend::dellsc_iscsi::dell_sc_ssn: {get_param: CinderDellScSsn}
102                 cinder::backend::dellsc_iscsi::iscsi_ip_address: {get_param: CinderDellScIscsiIpAddress}
103                 cinder::backend::dellsc_iscsi::iscsi_port: {get_param: CinderDellScIscsiPort}
104                 cinder::backend::dellsc_iscsi::dell_sc_api_port: {get_param: CinderDellScApiPort}
105                 cinder::backend::dellsc_iscsi::dell_sc_server_folder: {get_param: CinderDellScServerFolder}
106                 cinder::backend::dellsc_iscsi::dell_sc_volume_folder: {get_param: CinderDellScVolumeFolder}
107                 cinder::backend::dellsc_iscsi::secondary_san_ip: {get_param: CinderDellScSecondarySanIp}
108                 cinder::backend::dellsc_iscsi::secondary_san_login: {get_param: CinderDellScSecondarySanLogin}
109                 cinder::backend::dellsc_iscsi::secondary_san_password: {get_param: CinderDellScSecondarySanPassword}
110                 cinder::backend::dellsc_iscsi::secondary_sc_api_port: {get_param: CinderDellScSecondaryScApiPort}
111                 cinder::backend::dellsc_iscsi::excluded_domain_ip: {get_param: CinderDellScExcludedDomainIp}
112       step_config: |
113         include ::tripleo::profile::base::cinder::volume