Merge "Dell SC: Add secondary DSM support"
[apex-tripleo-heat-templates.git] / puppet / services / cinder-backend-pure.yaml
1 # Copyright (c) 2017 Pure Storage 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 Pure Storage FlashArray backend
18
19 parameters:
20   ServiceNetMap:
21     default: {}
22     description: Mapping of service_name -> network name. Typically set
23                  via parameter_defaults in the resource registry.  This
24                  mapping overrides those in ServiceNetMapDefaults.
25     type: json
26   DefaultPasswords:
27     default: {}
28     type: json
29   RoleName:
30     default: ''
31     description: Role name on which the service is applied
32     type: string
33   RoleParameters:
34     default: {}
35     description: Parameters specific to the role
36     type: json
37   EndpointMap:
38     default: {}
39     type: json
40     description: Mapping of service endpoint -> protocol. Typically set
41                  via parameter_defaults in the resource registry.
42   CinderEnablePureBackend:
43     type: boolean
44     default: true
45   CinderPureBackendName:
46     type: string
47     default: 'tripleo_pure'
48   CinderPureStorageProtocol:
49     type: string
50     default: 'iSCSI'
51   CinderPureSanIp:
52     type: string
53   CinderPureAPIToken:
54     type: string
55   CinderPureUseChap:
56     type: boolean
57     default: false
58   CinderPureMultipathXfer:
59     type: boolean
60     default: true
61
62 outputs:
63   role_data:
64     description: Role data for the Cinder Pure Storage FlashArray backend.
65     value:
66       service_name: cinder_backend_pure
67       config_settings:
68                 tripleo::profile::base::cinder::volume::cinder_enable_pure_backend: {get_param: CinderEnablePureBackend}
69                 cinder::backend::pure::volume_backend_name: {get_param: CinderPureBackendName}
70                 cinder::backend::pure::pure_storage_protocol: {get_param: CinderPureStorageProtocol}
71                 cinder::backend::pure::san_ip: {get_param: CinderPureSanIp}
72                 cinder::backend::pure::pure_api_token: {get_input: PureAPIToken}
73                 cinder::backend::pure::use_chap_auth: {get_input: PureUseChap}
74                 cinder::backend::pure::use_multipath_for_image_xfer: {get_input: PureMultipathXfer}
75       step_config: |
76         include ::tripleo::profile::base::cinder::volume