Merge "Parametrize and increase default of swift-proxy node_timeout"
[apex-tripleo-heat-templates.git] / puppet / extraconfig / pre_deploy / controller / cinder-netapp.yaml
1 heat_template_version: 2015-04-30
2
3 description: Configure hieradata for Cinder Netapp configuration
4
5 parameters:
6   server:
7     description: ID of the controller node to apply this config to
8     type: string
9
10   # Config specific parameters, to be provided via parameter_defaults
11   CinderEnableNetappBackend:
12     type: boolean
13     default: true
14   CinderNetappBackendName:
15     type: string
16     default: 'tripleo_netapp'
17   CinderNetappLogin:
18     type: string
19   CinderNetappPassword:
20     type: string
21     hidden: true
22   CinderNetappServerHostname:
23     type: string
24   CinderNetappServerPort:
25     type: string
26     default: '80'
27   CinderNetappSizeMultiplier:
28     type: string
29     default: '1.2'
30   CinderNetappStorageFamily:
31     type: string
32     default: 'ontap_cluster'
33   CinderNetappStorageProtocol:
34     type: string
35     default: 'nfs'
36   CinderNetappTransportType:
37     type: string
38     default: 'http'
39   CinderNetappVfiler:
40     type: string
41     default: ''
42   CinderNetappVolumeList:
43     type: string
44     default: ''
45   CinderNetappVserver:
46     type: string
47     default: ''
48   CinderNetappPartnerBackendName:
49     type: string
50     default: ''
51   CinderNetappNfsShares:
52     type: string
53     default: ''
54   CinderNetappNfsSharesConfig:
55     type: string
56     default: '/etc/cinder/shares.conf'
57   CinderNetappNfsMountOptions:
58     type: string
59     default: ''
60   CinderNetappCopyOffloadToolPath:
61     type: string
62     default: ''
63   CinderNetappControllerIps:
64     type: string
65     default: ''
66   CinderNetappSaPassword:
67     type: string
68     default: ''
69     hidden: true
70   CinderNetappStoragePools:
71     type: string
72     default: ''
73   CinderNetappEseriesHostType:
74     type: string
75     default: 'linux_dm_mp'
76   CinderNetappWebservicePath:
77     type: string
78     default: '/devmgr/v2'
79
80 resources:
81   CinderNetappConfig:
82     type: OS::Heat::StructuredConfig
83     properties:
84       group: os-apply-config
85       config:
86         hiera:
87           datafiles:
88             cinder_netapp_data:
89               mapped_data:
90                 tripleo::profile::base::cinder::volume::cinder_enable_netapp_backend: {get_input: EnableNetappBackend}
91                 cinder::backend::netapp::title: {get_input: NetappBackendName}
92                 cinder::backend::netapp::netapp_login: {get_input: NetappLogin}
93                 cinder::backend::netapp::netapp_password: {get_input: NetappPassword}
94                 cinder::backend::netapp::netapp_server_hostname: {get_input: NetappServerHostname}
95                 cinder::backend::netapp::netapp_server_port: {get_input: NetappServerPort}
96                 cinder::backend::netapp::netapp_size_multiplier: {get_input: NetappSizeMultiplier}
97                 cinder::backend::netapp::netapp_storage_family: {get_input: NetappStorageFamily}
98                 cinder::backend::netapp::netapp_storage_protocol: {get_input: NetappStorageProtocol}
99                 cinder::backend::netapp::netapp_transport_type: {get_input: NetappTransportType}
100                 cinder::backend::netapp::netapp_vfiler: {get_input: NetappVfiler}
101                 cinder::backend::netapp::netapp_volume_list: {get_input: NetappVolumeList}
102                 cinder::backend::netapp::netapp_vserver: {get_input: NetappVserver}
103                 cinder::backend::netapp::netapp_partner_backend_name: {get_input: NetappPartnerBackendName}
104                 cinder::backend::netapp::nfs_shares: {get_input: NetappNfsShares}
105                 cinder::backend::netapp::nfs_shares_config: {get_input: NetappNfsSharesConfig}
106                 cinder::backend::netapp::nfs_mount_options: {get_input: NetappNfsMountOptions}
107                 cinder::backend::netapp::netapp_copyoffload_tool_path: {get_input: NetappCopyOffloadToolPath}
108                 cinder::backend::netapp::netapp_controller_ips: {get_input: NetappControllerIps}
109                 cinder::backend::netapp::netapp_sa_password: {get_input: NetappSaPassword}
110                 cinder::backend::netapp::netapp_storage_pools: {get_input: NetappStoragePools}
111                 cinder::backend::netapp::netapp_eseries_host_type: {get_input: NetappEseriesHostType}
112                 cinder::backend::netapp::netapp_webservice_path: {get_input: NetappWebservicePath}
113
114   CinderNetappDeployment:
115     type: OS::Heat::StructuredDeployment
116     properties:
117       name: CinderNetappDeployment
118       config: {get_resource: CinderNetappConfig}
119       server: {get_param: server}
120       input_values:
121         EnableNetappBackend: {get_param: CinderEnableNetappBackend}
122         NetappBackendName: {get_param: CinderNetappBackendName}
123         NetappLogin: {get_param: CinderNetappLogin}
124         NetappPassword: {get_param: CinderNetappPassword}
125         NetappServerHostname: {get_param: CinderNetappServerHostname}
126         NetappServerPort: {get_param: CinderNetappServerPort}
127         NetappSizeMultiplier: {get_param: CinderNetappSizeMultiplier}
128         NetappStorageFamily: {get_param: CinderNetappStorageFamily}
129         NetappStorageProtocol: {get_param: CinderNetappStorageProtocol}
130         NetappTransportType: {get_param: CinderNetappTransportType}
131         NetappVfiler: {get_param: CinderNetappVfiler}
132         NetappVolumeList: {get_param: CinderNetappVolumeList}
133         NetappVserver: {get_param: CinderNetappVserver}
134         NetappPartnerBackendName: {get_param: CinderNetappPartnerBackendName}
135         NetappNfsShares: {get_param: CinderNetappNfsShares}
136         NetappNfsSharesConfig: {get_param: CinderNetappNfsSharesConfig}
137         NetappNfsMountOptions: {get_param: CinderNetappNfsMountOptions}
138         NetappCopyOffloadToolPath: {get_param: CinderNetappCopyOffloadToolPath}
139         NetappControllerIps: {get_param: CinderNetappControllerIps}
140         NetappSaPassword: {get_param: CinderNetappSaPassword}
141         NetappStoragePools: {get_param: CinderNetappStoragePools}
142         NetappEseriesHostType: {get_param: CinderNetappEseriesHostType}
143         NetappWebservicePath: {get_param: CinderNetappWebservicePath}
144
145 outputs:
146   deploy_stdout:
147     description: Deployment reference, used to trigger puppet apply on changes
148     value: {get_attr: [CinderNetappDeployment, deploy_stdout]}