Merge "Exposing the ability to enable/disable the repository"
[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   CinderDellPsSanThinProvision:
35     type: boolean
36     default: true
37   CinderDellPsGroupname:
38     type: string
39     default: 'group-0'
40   CinderDellPsPool:
41     type: string
42     default: 'default'
43   CinderDellPsChapLogin:
44     type: string
45     default: ''
46   CinderDellPsChapPassword:
47     type: string
48     default: ''
49   CinderDellPsUseChap:
50     type: boolean
51     default: false
52   ServiceData:
53     default: {}
54     description: Dictionary packing service data
55     type: json
56   ServiceNetMap:
57     default: {}
58     description: Mapping of service_name -> network name. Typically set
59                  via parameter_defaults in the resource registry.  This
60                  mapping overrides those in ServiceNetMapDefaults.
61     type: json
62   DefaultPasswords:
63     default: {}
64     type: json
65   RoleName:
66     default: ''
67     description: Role name on which the service is applied
68     type: string
69   RoleParameters:
70     default: {}
71     description: Parameters specific to the role
72     type: json
73   EndpointMap:
74     default: {}
75     type: json
76     description: Mapping of service endpoint -> protocol. Typically set
77                  via parameter_defaults in the resource registry.
78
79 outputs:
80   role_data:
81     description: Role data for the Cinder Dell EMC PS Series backend.
82     value:
83       service_name: cinder_backend_dellps
84       config_settings:
85         tripleo::profile::base::cinder::volume::cinder_enable_dellps_backend: {get_param: CinderEnableDellPsBackend}
86         cinder::backend::eqlx::volume_backend_name: {get_param: CinderDellPsBackendName}
87         cinder::backend::eqlx::san_ip: {get_param: CinderDellPsSanIp}
88         cinder::backend::eqlx::san_login: {get_param: CinderDellPsSanLogin}
89         cinder::backend::eqlx::san_password: {get_param: CinderDellPsSanPassword}
90         cinder::backend::eqlx::san_thin_provision: {get_param: CinderDellPsSanThinProvision}
91         cinder::backend::eqlx::eqlx_group_name: {get_param: CinderDellPsGroupname}
92         cinder::backend::eqlx::eqlx_pool: {get_param: CinderDellPsPool}
93         cinder::backend::eqlx::eqlx_use_chap: {get_param: CinderDellPsUseChap}
94         cinder::backend::eqlx::eqlx_chap_login: {get_param: CinderDellPsChapLogin}
95         cinder::backend::eqlx::eqlx_chap_password: {get_param: CinderDellPsChapPassword}
96       step_config: |
97         include ::tripleo::profile::base::cinder::volume