blob: 6ec1e767e3eb869efbcf079006382bf45305a1d8 [file] [log] [blame]
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +01001heat_template_version: queens
2
3parameters:
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +01004 image:
5 type: string
6 description: Name of image to use for servers
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +01007 public_net_id:
8 type: string
Oleh Hryhorovb58460e2020-02-05 15:53:48 +02009 default: ''
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +010010 description: >
Oleh Hryhorovb58460e2020-02-05 15:53:48 +020011 ID of public network for which floating IP addresses will be allocated/
12 for baremetal case flat provision network for nodes
Vasyl Saienko0fa6f192020-03-06 16:08:51 +020013 control_network_cidr:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +020014 type: string
Vasyl Saienko0fa6f192020-03-06 16:08:51 +020015 description: The CIDR of control network, used to detect control interface.
16 default: '10.10.0.0/24'
Sergey Matov0709c762020-04-02 14:30:50 +040017 control_network_vsrx_peering_ip:
18 type: string
19 description: IP address of vsrx for tungsten fabric peering
20 default: ''
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +010021 masters_size:
22 type: number
23 description: Number of masters instances to deploy
24 default: 2
25 worker_size:
26 type: number
27 description: Number of workers to deploy
28 default: 5
29 cmp_size:
30 type: number
31 description: Number of cmp workers to deploy
32 default: 0
33 gtw_size:
34 type: number
35 description: Number of gtw workers to deploy
36 default: 0
sgudzb94b4c62020-02-05 13:21:25 +020037 lma_size:
38 type: number
39 description: Number of gtw workers to deploy
40 default: 0
41 osd_size:
42 type: number
43 description: Number of gtw workers to deploy
44 default: 0
Dennis Dmitriev81da4222020-02-25 17:53:04 +020045 spare_size:
46 type: number
47 description: Number of gtw workers to deploy
48 default: 0
sgudz43eb82b2020-02-11 16:36:48 +020049 ntw_size:
50 type: number
51 description: Number of contrail nodes to deploy
52 default: 0
Vasyl Saienko36f2edf2020-05-14 10:44:52 +030053 vbmc_size:
54 type: number
55 description: Number of nodes for virtualbmc BM node simulator
56 default: 0
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +010057 ucp_boot_timeout:
58 type: number
59 description: Boot timeout for UCP instance
Vasyl Saienkof36f39c2020-03-10 00:21:42 +020060 default: 3600
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +010061 cluster_public_key:
62 type: string
Oleh Hryhorov0019f592020-01-23 11:50:12 +020063 private_floating_network_cidr:
64 type: string
65 default: '10.11.12.0/24'
Oleh Hryhorov2a7b3d72020-02-27 17:04:24 +020066 private_floating_network_ipam_pool_start:
67 type: string
68 description: pool start which is used as pool for IPAM and assigned to instances port
69 default: '10.11.12.2'
70 private_floating_network_ipam_pool_end:
71 type: string
72 description: pool end which is used as pool for IPAM and assigned to instances port
73 default: '10.11.12.99'
Oleh Hryhorovb58460e2020-02-05 15:53:48 +020074 private_floating_network_pool_start:
75 type: string
76 default: '10.11.12.100'
77 private_floating_network_pool_end:
78 type: string
79 default: '10.11.12.200'
80 private_floating_network_gateway:
81 type: string
Oleh Hryhorovd3a30242020-02-11 15:24:01 +020082 default: ''
Vasyl Saienkoc943f432020-04-21 12:15:57 +030083 private_floating_network_interface:
84 type: string
85 default: 'veth-phy'
86 description: 'The name of interface that should be added to external neutron bridge for floating network.'
Oleh Hryhorovb58460e2020-02-05 15:53:48 +020087 private_floating_interface:
88 description: Interface which carries floating network for child OpenStack.
89 type: string
Mateusz Lose2ad0772020-02-27 21:41:54 +010090 storage_frontend_network_cidr:
91 type: string
92 default: '10.12.0.0/24'
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +020093 storage_frontend_interface:
94 type: string
95 default: 'ens5'
96 storage_backend_network_cidr:
97 type: string
98 default: '10.11.0.0/24'
99 storage_backend_interface:
100 type: string
101 default: 'ens6'
Vasyl Saienko36f2edf2020-05-14 10:44:52 +0300102 ironic_baremetal_network_cidr:
103 type: string
104 default: '10.13.0.0/24'
105 ironic_baremetal_network_ipam_pool_start:
106 type: string
107 default: '10.13.0.2'
108 ironic_baremetal_network_ipam_pool_end:
109 type: string
110 default: '10.13.0.99'
111 ironic_baremetal_network_pool_start:
112 type: string
113 default: '10.13.0.100'
114 ironic_baremetal_network_pool_end:
115 type: string
116 default: '10.13.0.200'
117 ironic_baremetal_network_gateway:
118 type: string
119 default: ''
Vasyl Saienko4c468192020-05-19 11:51:13 +0300120 ironic_baremetal_network_interface:
Vasyl Saienko36f2edf2020-05-14 10:44:52 +0300121 type: string
Vasyl Saienko4c468192020-05-19 11:51:13 +0300122 default: 'veth-bm'
Vasyl Saienko1233afd2020-05-21 14:55:21 +0300123 description: 'The name of interface that should be added to ovs bridge in Neutron'
124 ironic_baremetal_network_vbmc_interface:
125 type: string
126 default: 'veth-vbmc'
127 description: 'The name of interface that should be added to ovs bridge with virtualbmc VMs.'
Vasyl Saienko9fd0b5b2020-05-20 13:15:58 +0300128 ironic_baremetal_provisioning_interface:
129 type: string
130 default: 'br-baremetal'
131 description: 'The name of interface on node to which IP ironic services will bind.'
Dennis Dmitrievea894212020-03-12 21:36:43 +0200132 ucp_metadata:
133 type: json
134 default: {"role":"ucp"}
135 master_metadata:
136 type: json
137 default: {"role":"master"}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100138 worker_metadata:
139 type: json
sgudzb94b4c62020-02-05 13:21:25 +0200140 default: {}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100141 cmp_metadata:
142 type: json
sgudzb94b4c62020-02-05 13:21:25 +0200143 default: {}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100144 gtw_metadata:
145 type: json
sgudzb94b4c62020-02-05 13:21:25 +0200146 default: {}
147 lma_metadata:
148 type: json
149 default: {}
150 osd_metadata:
151 type: json
152 default: {}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200153 spare_metadata:
154 type: json
155 default: {}
sgudz43eb82b2020-02-11 16:36:48 +0200156 ntw_metadata:
157 type: json
158 default: {}
Vasyl Saienko36f2edf2020-05-14 10:44:52 +0300159 vbmc_metadata:
160 type: json
161 default: {}
sgudzfe58e8a2020-02-11 13:31:40 +0200162 ucp_flavor:
163 type: string
Vasyl Saienko230242f2020-04-07 12:46:05 +0300164 default: 'system.compact.openstack.proxy'
sgudzfe58e8a2020-02-11 13:31:40 +0200165 masters_flavor:
166 type: string
Vasyl Saienko230242f2020-04-07 12:46:05 +0300167 default: 'system.compact.openstack.proxy'
sgudzfe58e8a2020-02-11 13:31:40 +0200168 workers_flavor:
169 type: string
170 default: 'system.compact.openstack.control'
171 cmps_flavor:
172 type: string
173 default: 'system.compact.openstack.control'
174 gtws_flavor:
175 type: string
176 default: 'system.compact.openstack.control'
177 lmas_flavor:
178 type: string
179 default: 'system.compact.openstack.control'
180 osds_flavor:
181 type: string
Mateusz Lose2ad0772020-02-27 21:41:54 +0100182 default: 'system.virtual.ceph.osd'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200183 spares_flavor:
184 type: string
185 default: 'system.compact.openstack.control'
sgudz43eb82b2020-02-11 16:36:48 +0200186 ntws_flavor:
187 type: string
188 default: 'system.compact.openstack.control'
Vasyl Saienko36f2edf2020-05-14 10:44:52 +0300189 vbmcs_flavor:
190 type: string
191 default: 'system.compact.openstack.control'
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200192 functions_override:
193 type: string
Vasyl Saienko9b688992020-02-13 13:50:53 +0200194 default: ''
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200195 docker_ee_url:
196 type: string
Vasyl Saienko1785c352020-03-11 11:39:40 +0200197 default: 'http://mirror-us.mcp.mirantis.net/.snapshots/docker-ee-bionic-latest'
198# default: 'https://s3-us-west-2.amazonaws.com/internal-docker-ee-builds/docker-ee-linux/ubuntu'
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200199 docker_ee_release:
200 type: string
201 default: 'stable-19.03'
Vasyl Saienkob59853e2020-05-25 10:15:26 +0300202 docker_ucp_image:
203 type: string
204 default: 'docker/ucp:3.2.4'
Oleh Hryhorov367e3ff2020-02-13 10:35:52 +0200205 tunnel_interface:
206 type: string
207 default: ''
208 live_migration_interface:
209 type: string
210 default: ''
211 metallb_address_pools:
212 type: comma_delimited_list
213 default: ''
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200214 hardware_metadata:
215 description: The content of lab metadata.
216 default: ''
217 type: string
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100218
219resources:
220 key_pair:
221 type: OS::Nova::KeyPair
222 properties:
223 name: { get_param: "OS::stack_name" }
224 public_key: { get_param: cluster_public_key}
225 save_private_key: false
226
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200227 accessible_network:
228 type: MCP2::NetworkAcc
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100229 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200230 public_net_id: { get_param: public_net_id }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100231
232 private_floating_network:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200233 type: MCP2::NetworkPrvFl
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100234 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200235 private_floating_network_cidr: { get_param: private_floating_network_cidr }
Oleh Hryhorov2a7b3d72020-02-27 17:04:24 +0200236 private_floating_network_ipam_pool_start: { get_param: private_floating_network_ipam_pool_start }
Oleh Hryhorov7b0157d2020-02-27 18:20:11 +0200237 private_floating_network_ipam_pool_end: { get_param: private_floating_network_ipam_pool_end }
Sergey Matov0709c762020-04-02 14:30:50 +0400238 private_floating_network_gateway: {get_param: private_floating_network_gateway}
239 control_network_vsrx_peering_ip: {get_param: control_network_vsrx_peering_ip}
240 accessible_network: { get_attr: [accessible_network, public_network]}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100241
Mateusz Lose2ad0772020-02-27 21:41:54 +0100242 storage_network:
243 type: MCP2::NetworkAccStorage
244 properties:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100245 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200246 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Mateusz Lose2ad0772020-02-27 21:41:54 +0100247
Vasyl Saienko36f2edf2020-05-14 10:44:52 +0300248 ironic_baremetal_network:
249 type: MCP2::NetworkIronicFlat
250 properties:
251 ironic_baremetal_network_cidr: { get_param: ironic_baremetal_network_cidr }
252 ironic_baremetal_network_ipam_pool_start: { get_param: ironic_baremetal_network_ipam_pool_start }
253 ironic_baremetal_network_ipam_pool_end: { get_param: ironic_baremetal_network_ipam_pool_end }
254 ironic_baremetal_network_gateway: {get_param: ironic_baremetal_network_gateway}
255
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100256 ucp:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100257 depends_on:
258 - accessible_network
259 - storage_network
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200260 type: MCP2::SrvInstances
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100261 properties:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200262 metadata: { get_param: ucp_metadata}
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200263 docker_ee_url: { get_param: docker_ee_url }
264 docker_ee_release: { get_param: docker_ee_release }
Vasyl Saienkob59853e2020-05-25 10:15:26 +0300265 docker_ucp_image: { get_param: docker_ucp_image}
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200266 node_type: "ucp"
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200267 key_name: { get_param: "OS::stack_name" }
268 image: { get_param: image }
269 flavor: { get_param: ucp_flavor }
270 accessible_network: { get_attr: [accessible_network, public_network] }
271 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
272 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
273 private_floating_interface: { get_param: private_floating_interface }
274 private_floating_network_cidr: { get_param: private_floating_network_cidr }
275 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
276 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200277 control_network_cidr: { get_param: control_network_cidr }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200278 functions_override: { get_param: functions_override }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200279 hardware_metadata: { get_param: hardware_metadata}
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200280
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100281 masters:
282 type: OS::Heat::ResourceGroup
283 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200284 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100285 properties:
286 count: { get_param: masters_size }
287 resource_def:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200288 type: MCP2::SrvInstances
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100289 properties:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200290 metadata: { get_param: master_metadata}
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200291 node_type: "master"
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200292 key_name: { get_param: "OS::stack_name" }
293 image: { get_param: image }
294 flavor: { get_param: masters_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200295 docker_ee_url: { get_param: docker_ee_url }
296 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200297 accessible_network: { get_attr: [accessible_network, public_network] }
298 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
299 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
300 private_floating_interface: { get_param: private_floating_interface }
301 private_floating_network_cidr: { get_param: private_floating_network_cidr }
302 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
303 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200304 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200305 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200306 functions_override: { get_param: functions_override }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200307 hardware_metadata: { get_param: hardware_metadata}
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200308
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100309 workers:
310 type: OS::Heat::ResourceGroup
311 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200312 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100313 properties:
314 count: { get_param: worker_size }
315 resource_def:
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200316 type: MCP2::SrvInstancesCephOSD
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100317 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200318 metadata: { get_param: worker_metadata}
319 node_type: "worker"
320 key_name: { get_param: "OS::stack_name" }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100321 image: { get_param: image }
Vasyl Saienko6ff0c1b2020-03-05 07:52:02 +0200322 flavor: { get_param: workers_flavor }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100323 key_name: { get_param: "OS::stack_name" }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200324 docker_ee_url: { get_param: docker_ee_url }
325 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200326 accessible_network: { get_attr: [accessible_network, public_network] }
327 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
328 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
329 private_floating_interface: { get_param: private_floating_interface }
330 private_floating_network_cidr: { get_param: private_floating_network_cidr }
331 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100332 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200333 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200334 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200335 functions_override: { get_param: functions_override }
Oleh Hryhorov1832d232020-03-05 11:33:13 +0200336 storage_frontend_interface: { get_param: storage_frontend_interface }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200337 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
338 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
339 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200340 storage_backend_interface: { get_param: storage_backend_interface }
341 storage_backend_network: { get_attr: [storage_network, storage_backend_network_id] }
342 storage_backend_subnet_id: { get_attr: [storage_network, storage_backend_subnet_id] }
343 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Vasyl Saienko36f2edf2020-05-14 10:44:52 +0300344 ironic_baremetal_network: { get_attr: [ironic_baremetal_network, ironic_baremetal_network_id] }
345 ironic_baremetal_subnet_id: { get_attr: [ironic_baremetal_network, ironic_baremetal_subnet_id] }
Vasyl Saienko4c468192020-05-19 11:51:13 +0300346 ironic_baremetal_network_cidr: { get_param: ironic_baremetal_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200347 hardware_metadata: { get_param: hardware_metadata}
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200348
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100349 cmps:
350 type: OS::Heat::ResourceGroup
351 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200352 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100353 properties:
354 count: { get_param: cmp_size }
355 resource_def:
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200356 type: MCP2::SrvInstancesCephOSD
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100357 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200358 metadata: { get_param: cmp_metadata }
359 node_type: "worker"
360 key_name: { get_param: "OS::stack_name" }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100361 image: { get_param: image }
Vasyl Saienko6ff0c1b2020-03-05 07:52:02 +0200362 flavor: { get_param: cmps_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200363 docker_ee_url: { get_param: docker_ee_url }
364 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200365 accessible_network: { get_attr: [accessible_network, public_network] }
366 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
367 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
368 private_floating_interface: { get_param: private_floating_interface }
369 private_floating_network_cidr: { get_param: private_floating_network_cidr }
370 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100371 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200372 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200373 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200374 functions_override: { get_param: functions_override }
Oleh Hryhorov1832d232020-03-05 11:33:13 +0200375 storage_frontend_interface: { get_param: storage_frontend_interface }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200376 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
377 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
378 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200379 storage_backend_interface: { get_param: storage_backend_interface }
380 storage_backend_network: { get_attr: [storage_network, storage_backend_network_id] }
381 storage_backend_subnet_id: { get_attr: [storage_network, storage_backend_subnet_id] }
382 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Vasyl Saienko36f2edf2020-05-14 10:44:52 +0300383 ironic_baremetal_network: { get_attr: [ironic_baremetal_network, ironic_baremetal_network_id] }
384 ironic_baremetal_subnet_id: { get_attr: [ironic_baremetal_network, ironic_baremetal_subnet_id] }
Vasyl Saienko4c468192020-05-19 11:51:13 +0300385 ironic_baremetal_network_cidr: { get_param: ironic_baremetal_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200386 hardware_metadata: { get_param: hardware_metadata}
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200387
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100388 gtws:
389 type: OS::Heat::ResourceGroup
390 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200391 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100392 properties:
393 count: { get_param: gtw_size }
394 resource_def:
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200395 type: MCP2::SrvInstancesCeph
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100396 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200397 metadata: { get_param: gtw_metadata }
398 node_type: "worker"
399 key_name: { get_param: "OS::stack_name" }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100400 image: { get_param: image }
sgudzfe58e8a2020-02-11 13:31:40 +0200401 flavor: { get_param: gtws_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200402 docker_ee_url: { get_param: docker_ee_url }
403 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200404 accessible_network: { get_attr: [accessible_network, public_network] }
405 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
406 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
407 private_floating_interface: { get_param: private_floating_interface }
408 private_floating_network_cidr: { get_param: private_floating_network_cidr }
409 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100410 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200411 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200412 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200413 functions_override: { get_param: functions_override }
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200414 storage_frontend_interface: { get_param: storage_frontend_interface }
415 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
416 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
417 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienko36f2edf2020-05-14 10:44:52 +0300418 ironic_baremetal_network: { get_attr: [ironic_baremetal_network, ironic_baremetal_network_id] }
419 ironic_baremetal_subnet_id: { get_attr: [ironic_baremetal_network, ironic_baremetal_subnet_id] }
Vasyl Saienko4c468192020-05-19 11:51:13 +0300420 ironic_baremetal_network_cidr: { get_param: ironic_baremetal_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200421 hardware_metadata: { get_param: hardware_metadata}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100422
sgudzb94b4c62020-02-05 13:21:25 +0200423 lmas:
424 type: OS::Heat::ResourceGroup
425 depends_on:
426 - ucp
427 properties:
428 count: { get_param: lma_size }
429 resource_def:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100430 type: MCP2::SrvInstancesCeph
sgudzb94b4c62020-02-05 13:21:25 +0200431 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200432 metadata: { get_param: lma_metadata }
433 node_type: "worker"
434 key_name: { get_param: "OS::stack_name" }
sgudzb94b4c62020-02-05 13:21:25 +0200435 image: { get_param: image }
sgudzfe58e8a2020-02-11 13:31:40 +0200436 flavor: { get_param: lmas_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200437 docker_ee_url: { get_param: docker_ee_url }
438 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200439 accessible_network: { get_attr: [accessible_network, public_network] }
440 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
441 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
442 private_floating_interface: { get_param: private_floating_interface }
443 private_floating_network_cidr: { get_param: private_floating_network_cidr }
444 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
sgudzb94b4c62020-02-05 13:21:25 +0200445 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200446 control_network_cidr: { get_param: control_network_cidr }
sgudzb94b4c62020-02-05 13:21:25 +0200447 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200448 functions_override: { get_param: functions_override }
Oleh Hryhorov1832d232020-03-05 11:33:13 +0200449 storage_frontend_interface: { get_param: storage_frontend_interface }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200450 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
451 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
452 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienko73d6ec62020-05-14 20:26:25 +0300453 ironic_baremetal_network: { get_attr: [ironic_baremetal_network, ironic_baremetal_network_id] }
454 ironic_baremetal_subnet_id: { get_attr: [ironic_baremetal_network, ironic_baremetal_subnet_id] }
Vasyl Saienko4c468192020-05-19 11:51:13 +0300455 ironic_baremetal_network_cidr: { get_param: ironic_baremetal_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200456 hardware_metadata: { get_param: hardware_metadata}
sgudzb94b4c62020-02-05 13:21:25 +0200457
458 osds:
459 type: OS::Heat::ResourceGroup
460 depends_on:
461 - ucp
462 properties:
463 count: { get_param: osd_size }
464 resource_def:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100465 type: MCP2::SrvInstancesCephOSD
sgudzb94b4c62020-02-05 13:21:25 +0200466 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200467 metadata: { get_param: osd_metadata }
468 node_type: "worker"
469 key_name: { get_param: "OS::stack_name" }
sgudzb94b4c62020-02-05 13:21:25 +0200470 image: { get_param: image }
sgudzfe58e8a2020-02-11 13:31:40 +0200471 flavor: { get_param: osds_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200472 docker_ee_url: { get_param: docker_ee_url }
473 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200474 accessible_network: { get_attr: [accessible_network, public_network] }
475 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
476 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
477 private_floating_interface: { get_param: private_floating_interface }
478 private_floating_network_cidr: { get_param: private_floating_network_cidr }
479 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
sgudzb94b4c62020-02-05 13:21:25 +0200480 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200481 control_network_cidr: { get_param: control_network_cidr }
sgudzb94b4c62020-02-05 13:21:25 +0200482 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200483 functions_override: { get_param: functions_override }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200484 storage_frontend_interface: { get_param: storage_frontend_interface }
485 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
486 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
487 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
488 storage_backend_interface: { get_param: storage_backend_interface }
489 storage_backend_network: { get_attr: [storage_network, storage_backend_network_id] }
490 storage_backend_subnet_id: { get_attr: [storage_network, storage_backend_subnet_id] }
491 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Vasyl Saienko73d6ec62020-05-14 20:26:25 +0300492 ironic_baremetal_network: { get_attr: [ironic_baremetal_network, ironic_baremetal_network_id] }
493 ironic_baremetal_subnet_id: { get_attr: [ironic_baremetal_network, ironic_baremetal_subnet_id] }
Vasyl Saienko4c468192020-05-19 11:51:13 +0300494 ironic_baremetal_network_cidr: { get_param: ironic_baremetal_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200495 hardware_metadata: { get_param: hardware_metadata}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100496
Dennis Dmitrievea894212020-03-12 21:36:43 +0200497 spares: # spares for osds/cmps
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200498 type: OS::Heat::ResourceGroup
499 depends_on:
500 - ucp
501 properties:
502 count: { get_param: spare_size }
503 resource_def:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200504 type: MCP2::SrvInstancesCephOSD
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200505 properties:
506 metadata: { get_param: spare_metadata }
507 node_type: "spare"
508 key_name: { get_param: "OS::stack_name" }
509 image: { get_param: image }
510 flavor: { get_param: spares_flavor }
511 docker_ee_url: { get_param: docker_ee_url }
512 docker_ee_release: { get_param: docker_ee_release }
513 accessible_network: { get_attr: [accessible_network, public_network] }
514 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
515 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
516 private_floating_interface: { get_param: private_floating_interface }
517 private_floating_network_cidr: { get_param: private_floating_network_cidr }
518 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
519 public_net_id: { get_param: public_net_id }
520 control_network_cidr: { get_param: control_network_cidr }
521 ucp_master_host: { get_attr: [ucp, server_private_ip] }
522 functions_override: { get_param: functions_override }
523 storage_frontend_interface: { get_param: storage_frontend_interface }
524 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
525 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
526 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200527 storage_backend_interface: { get_param: storage_backend_interface }
528 storage_backend_network: { get_attr: [storage_network, storage_backend_network_id] }
529 storage_backend_subnet_id: { get_attr: [storage_network, storage_backend_subnet_id] }
530 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Vasyl Saienko36f2edf2020-05-14 10:44:52 +0300531 ironic_baremetal_network: { get_attr: [ironic_baremetal_network, ironic_baremetal_network_id] }
532 ironic_baremetal_subnet_id: { get_attr: [ironic_baremetal_network, ironic_baremetal_subnet_id] }
Vasyl Saienko4c468192020-05-19 11:51:13 +0300533 ironic_baremetal_network_cidr: { get_param: ironic_baremetal_network_cidr }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200534 hardware_metadata: { get_param: hardware_metadata}
535
sgudz43eb82b2020-02-11 16:36:48 +0200536 ntws:
537 type: OS::Heat::ResourceGroup
538 depends_on:
539 - ucp
540 properties:
541 count: { get_param: ntw_size }
542 resource_def:
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200543 type: MCP2::SrvInstancesCeph
sgudz43eb82b2020-02-11 16:36:48 +0200544 properties:
545 metadata: { get_param: ntw_metadata }
546 node_type: "worker"
547 key_name: { get_param: "OS::stack_name" }
548 image: { get_param: image }
549 flavor: { get_param: ntws_flavor }
550 docker_ee_url: { get_param: docker_ee_url }
551 docker_ee_release: { get_param: docker_ee_release }
552 accessible_network: { get_attr: [accessible_network, public_network] }
553 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
554 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
555 private_floating_interface: { get_param: private_floating_interface }
556 private_floating_network_cidr: { get_param: private_floating_network_cidr }
557 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
558 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200559 control_network_cidr: { get_param: control_network_cidr }
sgudz43eb82b2020-02-11 16:36:48 +0200560 ucp_master_host: { get_attr: [ucp, server_private_ip] }
561 functions_override: { get_param: functions_override }
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200562 storage_frontend_interface: { get_param: storage_frontend_interface }
563 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
564 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
565 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienko73d6ec62020-05-14 20:26:25 +0300566 ironic_baremetal_network: { get_attr: [ironic_baremetal_network, ironic_baremetal_network_id] }
567 ironic_baremetal_subnet_id: { get_attr: [ironic_baremetal_network, ironic_baremetal_subnet_id] }
Vasyl Saienko4c468192020-05-19 11:51:13 +0300568 ironic_baremetal_network_cidr: { get_param: ironic_baremetal_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200569 hardware_metadata: { get_param: hardware_metadata}
sgudz43eb82b2020-02-11 16:36:48 +0200570
Vasyl Saienko36f2edf2020-05-14 10:44:52 +0300571 vbmcs:
572 type: OS::Heat::ResourceGroup
573 depends_on:
574 - ucp
575 properties:
576 count: { get_param: vbmc_size }
577 resource_def:
Michael Polenchuk3bfb59f2020-05-15 18:50:14 +0400578 type: MCP2::SrvInstancesCeph
Vasyl Saienko36f2edf2020-05-14 10:44:52 +0300579 properties:
580 metadata: { get_param: vbmc_metadata}
581 node_type: "worker"
582 key_name: { get_param: "OS::stack_name" }
583 image: { get_param: image }
584 flavor: { get_param: vbmcs_flavor }
585 docker_ee_url: { get_param: docker_ee_url }
586 docker_ee_release: { get_param: docker_ee_release }
587 accessible_network: { get_attr: [accessible_network, public_network] }
588 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
589 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
590 private_floating_interface: { get_param: private_floating_interface }
591 private_floating_network_cidr: { get_param: private_floating_network_cidr }
592 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
593 public_net_id: { get_param: public_net_id }
594 control_network_cidr: { get_param: control_network_cidr }
595 ucp_master_host: { get_attr: [ucp, server_private_ip] }
596 functions_override: { get_param: functions_override }
Michael Polenchuk3bfb59f2020-05-15 18:50:14 +0400597 storage_frontend_interface: { get_param: storage_frontend_interface }
598 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
599 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
600 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Michael Polenchuk21493b32020-05-15 21:08:04 +0400601 ironic_baremetal_network: { get_attr: [ironic_baremetal_network, ironic_baremetal_network_id] }
602 ironic_baremetal_subnet_id: { get_attr: [ironic_baremetal_network, ironic_baremetal_subnet_id] }
Vasyl Saienko4c468192020-05-19 11:51:13 +0300603 ironic_baremetal_network_cidr: { get_param: ironic_baremetal_network_cidr }
Vasyl Saienko36f2edf2020-05-14 10:44:52 +0300604 hardware_metadata: { get_param: hardware_metadata}
605
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100606outputs:
607 ucp_ips:
608 description: Private IP addresses of the deployed ucp instances
609 value: { get_attr: [ucp, server_public_ip] }
610 masters_ips:
611 description: Private IP addresses of the deployed masters instances
612 value: { get_attr: [masters, server_public_ip] }
613 workers_ips:
614 description: Private IP addresses of the deployed worker instances
615 value: { get_attr: [workers, server_public_ip] }
616 cmps_ips:
617 description: Private IP addresses of the deployed cmp instances
618 value: { get_attr: [cmps, server_public_ip] }
619 gtws_ips:
620 description: Private IP addresses of the deployed gtw instances
621 value: { get_attr: [gtws, server_public_ip] }
sgudzb94b4c62020-02-05 13:21:25 +0200622 lmas_ips:
623 description: Private IP addresses of the deployed lma instances
624 value: { get_attr: [lmas, server_public_ip] }
625 osds_ips:
626 description: Private IP addresses of the deployed osd instances
627 value: { get_attr: [osds, server_public_ip] }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200628 spares_ips:
629 description: Private IP addresses of the deployed spare instances
630 value: { get_attr: [spares, server_public_ip] }
sgudz43eb82b2020-02-11 16:36:48 +0200631 ntws_ips:
632 description: Private IP addresses of the deployed contrail instances
633 value: { get_attr: [ntws, server_public_ip] }
Vasyl Saienko36f2edf2020-05-14 10:44:52 +0300634 vbmcs_ips:
635 description: Private IP addresses of the deployed virtualbmcs instances
636 value: { get_attr: [vbmcs, server_public_ip] }
Oleh Hryhorov404e9572020-01-21 18:57:22 +0200637 worker_private_floating_ips:
638 description: IPs might be used as gateway
639 value: { get_attr: [workers, server_private_floating_ip] }
Oleh Hryhorov0019f592020-01-23 11:50:12 +0200640 private_floating_cidr:
641 value: { get_param: private_floating_network_cidr }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200642 private_floating_network_pool_start:
643 value: { get_param: private_floating_network_pool_start }
644 private_floating_network_pool_end:
645 value: { get_param: private_floating_network_pool_end }
646 private_floating_network_gateway:
647 value: { get_param: private_floating_network_gateway }
Vasyl Saienkoc943f432020-04-21 12:15:57 +0300648 private_floating_network_interface:
649 value: { get_param: private_floating_network_interface }
Vasyl Saienko36f2edf2020-05-14 10:44:52 +0300650 ironic_baremetal_network_pool_start:
651 value: { get_param: ironic_baremetal_network_pool_start }
652 ironic_baremetal_network_pool_end:
653 value: { get_param: ironic_baremetal_network_pool_end }
Vasyl Saienko4c468192020-05-19 11:51:13 +0300654 ironic_baremetal_network_interface:
655 value: { get_param: ironic_baremetal_network_interface }
Vasyl Saienko1233afd2020-05-21 14:55:21 +0300656 ironic_baremetal_network_vbmc_interface:
657 value: { get_param: ironic_baremetal_network_vbmc_interface }
Vasyl Saienko9fd0b5b2020-05-20 13:15:58 +0300658 ironic_baremetal_provisioning_interface:
659 value: { get_param: ironic_baremetal_provisioning_interface }
Oleh Hryhorov367e3ff2020-02-13 10:35:52 +0200660 tunnel_interface:
661 value: { get_param: tunnel_interface }
662 live_migration_interface:
663 value: { get_param: live_migration_interface }
664 metallb_address_pools:
665 value: { get_param: metallb_address_pools }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200666 ucp_wc_data:
667 description: Metadata from ucp
668 value: { get_attr: [ucp, wc_data] }
669 masters_wc_data:
670 description: Metadata from masters
671 value: { get_attr: [masters, wc_data] }
672 workers_wc_data:
673 description: Metadata from workers
674 value: { get_attr: [workers, wc_data] }
675 cmps_wc_data:
676 description: Metadata from cmps
677 value: { get_attr: [cmps, wc_data] }
678 gtws_wc_data:
679 description: Metadata from gtws
680 value: { get_attr: [gtws, wc_data] }
681 lmas_wc_data:
682 description: Metadata from lmas
683 value: { get_attr: [lmas, wc_data] }
684 osds_wc_data:
685 description: Metadata from osds
686 value: { get_attr: [osds, wc_data] }
687 ntws_wc_data:
688 description: Metadata from ntws
689 value: { get_attr: [ntws, wc_data] }
Oleh Hryhorov564a1202020-03-12 12:44:56 +0200690 storage_frontend_network_cidr:
691 description: Storage network which is used as clientNet in Ceph CR
692 value: { get_param: storage_frontend_network_cidr }
693 storage_backend_network_cidr:
694 description: Storage network which is used as clusterNet in Ceph CR
695 value: { get_param: storage_backend_network_cidr }