Merge "Add networking-vpp ML2 mechanism driver 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: ocata
15
16 description: >
17   Openstack Cinder Pure Storage FlashArray backend
18
19 parameters:
20   CinderEnablePureBackend:
21     type: boolean
22     default: true
23   CinderPureBackendName:
24     type: string
25     default: 'tripleo_pure'
26   CinderPureStorageProtocol:
27     type: string
28     default: 'iSCSI'
29   CinderPureSanIp:
30     type: string
31   CinderPureAPIToken:
32     type: string
33   CinderPureUseChap:
34     type: boolean
35     default: false
36   CinderPureMultipathXfer:
37     type: boolean
38     default: true
39   ServiceNetMap:
40     default: {}
41     description: Mapping of service_name -> network name. Typically set
42                  via parameter_defaults in the resource registry.  This
43                  mapping overrides those in ServiceNetMapDefaults.
44     type: json
45   DefaultPasswords:
46     default: {}
47     type: json
48   EndpointMap:
49     default: {}
50     type: json
51     description: Mapping of service endpoint -> protocol. Typically set
52                  via parameter_defaults in the resource registry.
53
54 outputs:
55   role_data:
56     description: Role data for the Cinder Pure Storage FlashArray backend.
57     value:
58       service_name: cinder_backend_pure
59       config_settings:
60                 tripleo::profile::base::cinder::volume::cinder_enable_pure_backend: {get_param: CinderEnablePureBackend}
61                 cinder::backend::pure::volume_backend_name: {get_param: CinderPureBackendName}
62                 cinder::backend::pure::pure_storage_protocol: {get_param: CinderPureStorageProtocol}
63                 cinder::backend::pure::san_ip: {get_param: CinderPureSanIp}
64                 cinder::backend::pure::pure_api_token: {get_input: PureAPIToken}
65                 cinder::backend::pure::use_chap_auth: {get_input: PureUseChap}
66                 cinder::backend::pure::use_multipath_for_image_xfer: {get_input: PureMultipathXfer}
67       step_config: |
68         include ::tripleo::profile::base::cinder::volume