Add role specific information to the service template
[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: ocata
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   ServiceNetMap:
53     default: {}
54     description: Mapping of service_name -> network name. Typically set
55                  via parameter_defaults in the resource registry.  This
56                  mapping overrides those in ServiceNetMapDefaults.
57     type: json
58   DefaultPasswords:
59     default: {}
60     type: json
61   RoleName:
62     default: ''
63     description: Role name on which the service is applied
64     type: string
65   RoleParameters:
66     default: {}
67     description: Parameters specific to the role
68     type: json
69   EndpointMap:
70     default: {}
71     type: json
72     description: Mapping of service endpoint -> protocol. Typically set
73                  via parameter_defaults in the resource registry.
74
75 outputs:
76   role_data:
77     description: Role data for the Cinder Dell EMC Storage Center backend.
78     value:
79       service_name: cinder_backend_dellsc
80       config_settings:
81                 tripleo::profile::base::cinder::volume::cinder_enable_dellsc_backend: {get_param: CinderEnableDellScBackend}
82                 cinder::backend::dellsc_iscsi::volume_backend_name: {get_param: CinderDellScBackendName}
83                 cinder::backend::dellsc_iscsi::san_ip: {get_param: CinderDellScSanIp}
84                 cinder::backend::dellsc_iscsi::san_login: {get_param: CinderDellScSanLogin}
85                 cinder::backend::dellsc_iscsi::san_password: {get_param: CinderDellScSanPassword}
86                 cinder::backend::dellsc_iscsi::dell_sc_ssn: {get_param: CinderDellScSsn}
87                 cinder::backend::dellsc_iscsi::iscsi_ip_address: {get_param: CinderDellScIscsiIpAddress}
88                 cinder::backend::dellsc_iscsi::iscsi_port: {get_param: CinderDellScIscsiPort}
89                 cinder::backend::dellsc_iscsi::dell_sc_api_port: {get_param: CinderDellScApiPort}
90                 cinder::backend::dellsc_iscsi::dell_sc_server_folder: {get_param: CinderDellScServerFolder}
91                 cinder::backend::dellsc_iscsi::dell_sc_volume_folder: {get_param: CinderDellScVolumeFolder}
92       step_config: |
93         include ::tripleo::profile::base::cinder::volume