Merge "Noop controller pre and post config resources."
[apex-tripleo-heat-templates.git] / puppet / services / cinder-backend-dellps.yaml
1 # Copyright (c) 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
15 heat_template_version: pike
16
17 description: >
18   Openstack Cinder Dell EMC PS Series backend
19
20 parameters:
21   CinderEnableDellPsBackend:
22     type: boolean
23     default: true
24   CinderDellPsBackendName:
25     type: string
26     default: 'tripleo_dellps'
27   CinderDellPsSanIp:
28     type: string
29   CinderDellPsSanLogin:
30     type: string
31   CinderDellPsSanPassword:
32     type: string
33     hidden: true
34   CinderDellPsSanPrivateKey:
35     type: string
36     default: ''
37   CinderDellPsSanThinProvision:
38     type: boolean
39     default: true
40   CinderDellPsGroupname:
41     type: string
42     default: 'group-0'
43   CinderDellPsPool:
44     type: string
45     default: 'default'
46   CinderDellPsChapLogin:
47     type: string
48     default: ''
49   CinderDellPsChapPassword:
50     type: string
51     default: ''
52   CinderDellPsUseChap:
53     type: boolean
54     default: false
55   ServiceData:
56     default: {}
57     description: Dictionary packing service data
58     type: json
59   ServiceNetMap:
60     default: {}
61     description: Mapping of service_name -> network name. Typically set
62                  via parameter_defaults in the resource registry.  This
63                  mapping overrides those in ServiceNetMapDefaults.
64     type: json
65   DefaultPasswords:
66     default: {}
67     type: json
68   RoleName:
69     default: ''
70     description: Role name on which the service is applied
71     type: string
72   RoleParameters:
73     default: {}
74     description: Parameters specific to the role
75     type: json
76   EndpointMap:
77     default: {}
78     type: json
79     description: Mapping of service endpoint -> protocol. Typically set
80                  via parameter_defaults in the resource registry.
81
82 outputs:
83   role_data:
84     description: Role data for the Cinder Dell EMC PS Series backend.
85     value:
86       service_name: cinder_backend_dellps
87       config_settings:
88         tripleo::profile::base::cinder::volume::cinder_enable_dellps_backend: {get_param: CinderEnableDellPsBackend}
89         cinder::backend::eqlx::volume_backend_name: {get_param: CinderDellPsBackendName}
90         cinder::backend::eqlx::san_ip: {get_param: CinderDellPsSanIp}
91         cinder::backend::eqlx::san_login: {get_param: CinderDellPsSanLogin}
92         cinder::backend::eqlx::san_password: {get_param: CinderDellPsSanPassword}
93         cinder::backend::eqlx::san_private_key: {get_param: CinderDellPsSanPrivateKey}
94         cinder::backend::eqlx::san_thin_provision: {get_param: CinderDellPsSanThinProvision}
95         cinder::backend::eqlx::eqlx_group_name: {get_param: CinderDellPsGroupname}
96         cinder::backend::eqlx::eqlx_pool: {get_param: CinderDellPsPool}
97         cinder::backend::eqlx::eqlx_use_chap: {get_param: CinderDellPsUseChap}
98         cinder::backend::eqlx::eqlx_chap_login: {get_param: CinderDellPsChapLogin}
99         cinder::backend::eqlx::eqlx_chap_password: {get_param: CinderDellPsChapPassword}
100       step_config: |
101         include ::tripleo::profile::base::cinder::volume