Merge "Add monitoring agents deployment to CI"
[apex-tripleo-heat-templates.git] / puppet / extraconfig / pre_deploy / controller / cinder-netapp.yaml
1 heat_template_version: ocata
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   CinderNetappHostType:
74     type: string
75     default: ''
76   CinderNetappWebservicePath:
77     type: string
78     default: '/devmgr/v2'
79   # DEPRECATED options for compatibility with older versions
80   CinderNetappEseriesHostType:
81     type: string
82     default: 'linux_dm_mp'
83
84 parameter_groups:
85 - label: deprecated
86   description: Do not use deprecated params, they will be removed.
87   parameters:
88   - CinderNetappEseriesHostType
89
90 resources:
91   CinderNetappConfig:
92     type: OS::Heat::StructuredConfig
93     properties:
94       group: hiera
95       config:
96         datafiles:
97           cinder_netapp_data:
98             mapped_data:
99               tripleo::profile::base::cinder::volume::cinder_enable_netapp_backend: {get_input: EnableNetappBackend}
100               cinder::backend::netapp::title: {get_input: NetappBackendName}
101               cinder::backend::netapp::netapp_login: {get_input: NetappLogin}
102               cinder::backend::netapp::netapp_password: {get_input: NetappPassword}
103               cinder::backend::netapp::netapp_server_hostname: {get_input: NetappServerHostname}
104               cinder::backend::netapp::netapp_server_port: {get_input: NetappServerPort}
105               cinder::backend::netapp::netapp_size_multiplier: {get_input: NetappSizeMultiplier}
106               cinder::backend::netapp::netapp_storage_family: {get_input: NetappStorageFamily}
107               cinder::backend::netapp::netapp_storage_protocol: {get_input: NetappStorageProtocol}
108               cinder::backend::netapp::netapp_transport_type: {get_input: NetappTransportType}
109               cinder::backend::netapp::netapp_vfiler: {get_input: NetappVfiler}
110               cinder::backend::netapp::netapp_volume_list: {get_input: NetappVolumeList}
111               cinder::backend::netapp::netapp_vserver: {get_input: NetappVserver}
112               cinder::backend::netapp::netapp_partner_backend_name: {get_input: NetappPartnerBackendName}
113               cinder::backend::netapp::nfs_shares: {get_input: NetappNfsShares}
114               cinder::backend::netapp::nfs_shares_config: {get_input: NetappNfsSharesConfig}
115               cinder::backend::netapp::nfs_mount_options: {get_input: NetappNfsMountOptions}
116               cinder::backend::netapp::netapp_copyoffload_tool_path: {get_input: NetappCopyOffloadToolPath}
117               cinder::backend::netapp::netapp_controller_ips: {get_input: NetappControllerIps}
118               cinder::backend::netapp::netapp_sa_password: {get_input: NetappSaPassword}
119               cinder::backend::netapp::netapp_storage_pools: {get_input: NetappStoragePools}
120               cinder::backend::netapp::netapp_host_type: {get_input: NetappHostType}
121               cinder::backend::netapp::netapp_webservice_path: {get_input: NetappWebservicePath}
122
123   CinderNetappDeployment:
124     type: OS::Heat::StructuredDeployment
125     properties:
126       name: CinderNetappDeployment
127       config: {get_resource: CinderNetappConfig}
128       server: {get_param: server}
129       input_values:
130         EnableNetappBackend: {get_param: CinderEnableNetappBackend}
131         NetappBackendName: {get_param: CinderNetappBackendName}
132         NetappLogin: {get_param: CinderNetappLogin}
133         NetappPassword: {get_param: CinderNetappPassword}
134         NetappServerHostname: {get_param: CinderNetappServerHostname}
135         NetappServerPort: {get_param: CinderNetappServerPort}
136         NetappSizeMultiplier: {get_param: CinderNetappSizeMultiplier}
137         NetappStorageFamily: {get_param: CinderNetappStorageFamily}
138         NetappStorageProtocol: {get_param: CinderNetappStorageProtocol}
139         NetappTransportType: {get_param: CinderNetappTransportType}
140         NetappVfiler: {get_param: CinderNetappVfiler}
141         NetappVolumeList: {get_param: CinderNetappVolumeList}
142         NetappVserver: {get_param: CinderNetappVserver}
143         NetappPartnerBackendName: {get_param: CinderNetappPartnerBackendName}
144         NetappNfsShares: {get_param: CinderNetappNfsShares}
145         NetappNfsSharesConfig: {get_param: CinderNetappNfsSharesConfig}
146         NetappNfsMountOptions: {get_param: CinderNetappNfsMountOptions}
147         NetappCopyOffloadToolPath: {get_param: CinderNetappCopyOffloadToolPath}
148         NetappControllerIps: {get_param: CinderNetappControllerIps}
149         NetappSaPassword: {get_param: CinderNetappSaPassword}
150         NetappStoragePools: {get_param: CinderNetappStoragePools}
151         NetappHostType: {get_param: CinderNetappHostType}
152         NetappWebservicePath: {get_param: CinderNetappWebservicePath}
153
154 outputs:
155   deploy_stdout:
156     description: Deployment reference, used to trigger puppet apply on changes
157     value: {get_attr: [CinderNetappDeployment, deploy_stdout]}