Change flat network name for nosdn fdio scenario
[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   ServiceData:
21     default: {}
22     description: Dictionary packing service data
23     type: json
24   ServiceNetMap:
25     default: {}
26     description: Mapping of service_name -> network name. Typically set
27                  via parameter_defaults in the resource registry.  This
28                  mapping overrides those in ServiceNetMapDefaults.
29     type: json
30   DefaultPasswords:
31     default: {}
32     type: json
33   RoleName:
34     default: ''
35     description: Role name on which the service is applied
36     type: string
37   RoleParameters:
38     default: {}
39     description: Parameters specific to the role
40     type: json
41   EndpointMap:
42     default: {}
43     type: json
44     description: Mapping of service endpoint -> protocol. Typically set
45                  via parameter_defaults in the resource registry.
46   CinderEnablePureBackend:
47     type: boolean
48     default: true
49   CinderPureBackendName:
50     type: string
51     default: 'tripleo_pure'
52   CinderPureStorageProtocol:
53     type: string
54     default: 'iSCSI'
55   CinderPureSanIp:
56     type: string
57   CinderPureAPIToken:
58     type: string
59   CinderPureUseChap:
60     type: boolean
61     default: false
62   CinderPureMultipathXfer:
63     type: boolean
64     default: true
65
66 outputs:
67   role_data:
68     description: Role data for the Cinder Pure Storage FlashArray backend.
69     value:
70       service_name: cinder_backend_pure
71       config_settings:
72                 tripleo::profile::base::cinder::volume::cinder_enable_pure_backend: {get_param: CinderEnablePureBackend}
73                 cinder::backend::pure::volume_backend_name: {get_param: CinderPureBackendName}
74                 cinder::backend::pure::pure_storage_protocol: {get_param: CinderPureStorageProtocol}
75                 cinder::backend::pure::san_ip: {get_param: CinderPureSanIp}
76                 cinder::backend::pure::pure_api_token: {get_input: PureAPIToken}
77                 cinder::backend::pure::use_chap_auth: {get_input: PureUseChap}
78                 cinder::backend::pure::use_multipath_for_image_xfer: {get_input: PureMultipathXfer}
79       step_config: |
80         include ::tripleo::profile::base::cinder::volume