blob: da2e305674cbe224a7b85fb8daf0f5b42be2aab1 [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
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +010053 ucp_boot_timeout:
54 type: number
55 description: Boot timeout for UCP instance
Vasyl Saienkof36f39c2020-03-10 00:21:42 +020056 default: 3600
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +010057 cluster_public_key:
58 type: string
Oleh Hryhorov0019f592020-01-23 11:50:12 +020059 private_floating_network_cidr:
60 type: string
61 default: '10.11.12.0/24'
Oleh Hryhorov2a7b3d72020-02-27 17:04:24 +020062 private_floating_network_ipam_pool_start:
63 type: string
64 description: pool start which is used as pool for IPAM and assigned to instances port
65 default: '10.11.12.2'
66 private_floating_network_ipam_pool_end:
67 type: string
68 description: pool end which is used as pool for IPAM and assigned to instances port
69 default: '10.11.12.99'
Oleh Hryhorovb58460e2020-02-05 15:53:48 +020070 private_floating_network_pool_start:
71 type: string
72 default: '10.11.12.100'
73 private_floating_network_pool_end:
74 type: string
75 default: '10.11.12.200'
76 private_floating_network_gateway:
77 type: string
Oleh Hryhorovd3a30242020-02-11 15:24:01 +020078 default: ''
Oleh Hryhorovb58460e2020-02-05 15:53:48 +020079 private_floating_interface:
80 description: Interface which carries floating network for child OpenStack.
81 type: string
Mateusz Lose2ad0772020-02-27 21:41:54 +010082 storage_frontend_network_cidr:
83 type: string
84 default: '10.12.0.0/24'
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +020085 storage_frontend_interface:
86 type: string
87 default: 'ens5'
88 storage_backend_network_cidr:
89 type: string
90 default: '10.11.0.0/24'
91 storage_backend_interface:
92 type: string
93 default: 'ens6'
Dennis Dmitrievea894212020-03-12 21:36:43 +020094 ucp_metadata:
95 type: json
96 default: {"role":"ucp"}
97 master_metadata:
98 type: json
99 default: {"role":"master"}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100100 worker_metadata:
101 type: json
sgudzb94b4c62020-02-05 13:21:25 +0200102 default: {}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100103 cmp_metadata:
104 type: json
sgudzb94b4c62020-02-05 13:21:25 +0200105 default: {}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100106 gtw_metadata:
107 type: json
sgudzb94b4c62020-02-05 13:21:25 +0200108 default: {}
109 lma_metadata:
110 type: json
111 default: {}
112 osd_metadata:
113 type: json
114 default: {}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200115 spare_metadata:
116 type: json
117 default: {}
sgudz43eb82b2020-02-11 16:36:48 +0200118 ntw_metadata:
119 type: json
120 default: {}
sgudzfe58e8a2020-02-11 13:31:40 +0200121 ucp_flavor:
122 type: string
123 default: 'system.compact.openstack.control'
124 masters_flavor:
125 type: string
126 default: 'system.compact.openstack.control'
127 workers_flavor:
128 type: string
129 default: 'system.compact.openstack.control'
130 cmps_flavor:
131 type: string
132 default: 'system.compact.openstack.control'
133 gtws_flavor:
134 type: string
135 default: 'system.compact.openstack.control'
136 lmas_flavor:
137 type: string
138 default: 'system.compact.openstack.control'
139 osds_flavor:
140 type: string
Mateusz Lose2ad0772020-02-27 21:41:54 +0100141 default: 'system.virtual.ceph.osd'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200142 spares_flavor:
143 type: string
144 default: 'system.compact.openstack.control'
sgudz43eb82b2020-02-11 16:36:48 +0200145 ntws_flavor:
146 type: string
147 default: 'system.compact.openstack.control'
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200148 functions_override:
149 type: string
Vasyl Saienko9b688992020-02-13 13:50:53 +0200150 default: ''
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200151 docker_ee_url:
152 type: string
Vasyl Saienko1785c352020-03-11 11:39:40 +0200153 default: 'http://mirror-us.mcp.mirantis.net/.snapshots/docker-ee-bionic-latest'
154# default: 'https://s3-us-west-2.amazonaws.com/internal-docker-ee-builds/docker-ee-linux/ubuntu'
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200155 docker_ee_release:
156 type: string
157 default: 'stable-19.03'
Oleh Hryhorov367e3ff2020-02-13 10:35:52 +0200158 tunnel_interface:
159 type: string
160 default: ''
161 live_migration_interface:
162 type: string
163 default: ''
164 metallb_address_pools:
165 type: comma_delimited_list
166 default: ''
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200167 hardware_metadata:
168 description: The content of lab metadata.
169 default: ''
170 type: string
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100171
172resources:
173 key_pair:
174 type: OS::Nova::KeyPair
175 properties:
176 name: { get_param: "OS::stack_name" }
177 public_key: { get_param: cluster_public_key}
178 save_private_key: false
179
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200180 accessible_network:
181 type: MCP2::NetworkAcc
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100182 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200183 public_net_id: { get_param: public_net_id }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100184
185 private_floating_network:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200186 type: MCP2::NetworkPrvFl
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100187 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200188 private_floating_network_cidr: { get_param: private_floating_network_cidr }
Oleh Hryhorov2a7b3d72020-02-27 17:04:24 +0200189 private_floating_network_ipam_pool_start: { get_param: private_floating_network_ipam_pool_start }
Oleh Hryhorov7b0157d2020-02-27 18:20:11 +0200190 private_floating_network_ipam_pool_end: { get_param: private_floating_network_ipam_pool_end }
Sergey Matov0709c762020-04-02 14:30:50 +0400191 private_floating_network_gateway: {get_param: private_floating_network_gateway}
192 control_network_vsrx_peering_ip: {get_param: control_network_vsrx_peering_ip}
193 accessible_network: { get_attr: [accessible_network, public_network]}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100194
Mateusz Lose2ad0772020-02-27 21:41:54 +0100195 storage_network:
196 type: MCP2::NetworkAccStorage
197 properties:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100198 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200199 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Mateusz Lose2ad0772020-02-27 21:41:54 +0100200
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100201 ucp:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100202 depends_on:
203 - accessible_network
204 - storage_network
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200205 type: MCP2::SrvInstances
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100206 properties:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200207 metadata: { get_param: ucp_metadata}
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200208 docker_ee_url: { get_param: docker_ee_url }
209 docker_ee_release: { get_param: docker_ee_release }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200210 node_type: "ucp"
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200211 key_name: { get_param: "OS::stack_name" }
212 image: { get_param: image }
213 flavor: { get_param: ucp_flavor }
214 accessible_network: { get_attr: [accessible_network, public_network] }
215 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
216 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
217 private_floating_interface: { get_param: private_floating_interface }
218 private_floating_network_cidr: { get_param: private_floating_network_cidr }
219 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
220 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200221 control_network_cidr: { get_param: control_network_cidr }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200222 functions_override: { get_param: functions_override }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200223 hardware_metadata: { get_param: hardware_metadata}
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200224
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100225 masters:
226 type: OS::Heat::ResourceGroup
227 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200228 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100229 properties:
230 count: { get_param: masters_size }
231 resource_def:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200232 type: MCP2::SrvInstances
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100233 properties:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200234 metadata: { get_param: master_metadata}
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200235 node_type: "master"
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200236 key_name: { get_param: "OS::stack_name" }
237 image: { get_param: image }
238 flavor: { get_param: masters_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200239 docker_ee_url: { get_param: docker_ee_url }
240 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200241 accessible_network: { get_attr: [accessible_network, public_network] }
242 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
243 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
244 private_floating_interface: { get_param: private_floating_interface }
245 private_floating_network_cidr: { get_param: private_floating_network_cidr }
246 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
247 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200248 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200249 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200250 functions_override: { get_param: functions_override }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200251 hardware_metadata: { get_param: hardware_metadata}
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200252
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100253 workers:
254 type: OS::Heat::ResourceGroup
255 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200256 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100257 properties:
258 count: { get_param: worker_size }
259 resource_def:
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200260 type: MCP2::SrvInstancesCephOSD
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100261 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200262 metadata: { get_param: worker_metadata}
263 node_type: "worker"
264 key_name: { get_param: "OS::stack_name" }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100265 image: { get_param: image }
Vasyl Saienko6ff0c1b2020-03-05 07:52:02 +0200266 flavor: { get_param: workers_flavor }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100267 key_name: { get_param: "OS::stack_name" }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200268 docker_ee_url: { get_param: docker_ee_url }
269 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200270 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]}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100276 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200277 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200278 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200279 functions_override: { get_param: functions_override }
Oleh Hryhorov1832d232020-03-05 11:33:13 +0200280 storage_frontend_interface: { get_param: storage_frontend_interface }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200281 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
282 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
283 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200284 storage_backend_interface: { get_param: storage_backend_interface }
285 storage_backend_network: { get_attr: [storage_network, storage_backend_network_id] }
286 storage_backend_subnet_id: { get_attr: [storage_network, storage_backend_subnet_id] }
287 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200288 hardware_metadata: { get_param: hardware_metadata}
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200289
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100290 cmps:
291 type: OS::Heat::ResourceGroup
292 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200293 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100294 properties:
295 count: { get_param: cmp_size }
296 resource_def:
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200297 type: MCP2::SrvInstancesCephOSD
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100298 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200299 metadata: { get_param: cmp_metadata }
300 node_type: "worker"
301 key_name: { get_param: "OS::stack_name" }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100302 image: { get_param: image }
Vasyl Saienko6ff0c1b2020-03-05 07:52:02 +0200303 flavor: { get_param: cmps_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200304 docker_ee_url: { get_param: docker_ee_url }
305 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200306 accessible_network: { get_attr: [accessible_network, public_network] }
307 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
308 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
309 private_floating_interface: { get_param: private_floating_interface }
310 private_floating_network_cidr: { get_param: private_floating_network_cidr }
311 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100312 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200313 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200314 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200315 functions_override: { get_param: functions_override }
Oleh Hryhorov1832d232020-03-05 11:33:13 +0200316 storage_frontend_interface: { get_param: storage_frontend_interface }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200317 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
318 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
319 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200320 storage_backend_interface: { get_param: storage_backend_interface }
321 storage_backend_network: { get_attr: [storage_network, storage_backend_network_id] }
322 storage_backend_subnet_id: { get_attr: [storage_network, storage_backend_subnet_id] }
323 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200324 hardware_metadata: { get_param: hardware_metadata}
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200325
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100326 gtws:
327 type: OS::Heat::ResourceGroup
328 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200329 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100330 properties:
331 count: { get_param: gtw_size }
332 resource_def:
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200333 type: MCP2::SrvInstancesCeph
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100334 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200335 metadata: { get_param: gtw_metadata }
336 node_type: "worker"
337 key_name: { get_param: "OS::stack_name" }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100338 image: { get_param: image }
sgudzfe58e8a2020-02-11 13:31:40 +0200339 flavor: { get_param: gtws_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200340 docker_ee_url: { get_param: docker_ee_url }
341 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200342 accessible_network: { get_attr: [accessible_network, public_network] }
343 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
344 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
345 private_floating_interface: { get_param: private_floating_interface }
346 private_floating_network_cidr: { get_param: private_floating_network_cidr }
347 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100348 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200349 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200350 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200351 functions_override: { get_param: functions_override }
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200352 storage_frontend_interface: { get_param: storage_frontend_interface }
353 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
354 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
355 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200356 hardware_metadata: { get_param: hardware_metadata}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100357
sgudzb94b4c62020-02-05 13:21:25 +0200358 lmas:
359 type: OS::Heat::ResourceGroup
360 depends_on:
361 - ucp
362 properties:
363 count: { get_param: lma_size }
364 resource_def:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100365 type: MCP2::SrvInstancesCeph
sgudzb94b4c62020-02-05 13:21:25 +0200366 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200367 metadata: { get_param: lma_metadata }
368 node_type: "worker"
369 key_name: { get_param: "OS::stack_name" }
sgudzb94b4c62020-02-05 13:21:25 +0200370 image: { get_param: image }
sgudzfe58e8a2020-02-11 13:31:40 +0200371 flavor: { get_param: lmas_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200372 docker_ee_url: { get_param: docker_ee_url }
373 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200374 accessible_network: { get_attr: [accessible_network, public_network] }
375 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
376 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
377 private_floating_interface: { get_param: private_floating_interface }
378 private_floating_network_cidr: { get_param: private_floating_network_cidr }
379 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
sgudzb94b4c62020-02-05 13:21:25 +0200380 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200381 control_network_cidr: { get_param: control_network_cidr }
sgudzb94b4c62020-02-05 13:21:25 +0200382 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200383 functions_override: { get_param: functions_override }
Oleh Hryhorov1832d232020-03-05 11:33:13 +0200384 storage_frontend_interface: { get_param: storage_frontend_interface }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200385 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
386 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
387 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200388 hardware_metadata: { get_param: hardware_metadata}
sgudzb94b4c62020-02-05 13:21:25 +0200389
390 osds:
391 type: OS::Heat::ResourceGroup
392 depends_on:
393 - ucp
394 properties:
395 count: { get_param: osd_size }
396 resource_def:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100397 type: MCP2::SrvInstancesCephOSD
sgudzb94b4c62020-02-05 13:21:25 +0200398 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200399 metadata: { get_param: osd_metadata }
400 node_type: "worker"
401 key_name: { get_param: "OS::stack_name" }
sgudzb94b4c62020-02-05 13:21:25 +0200402 image: { get_param: image }
sgudzfe58e8a2020-02-11 13:31:40 +0200403 flavor: { get_param: osds_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200404 docker_ee_url: { get_param: docker_ee_url }
405 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200406 accessible_network: { get_attr: [accessible_network, public_network] }
407 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
408 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
409 private_floating_interface: { get_param: private_floating_interface }
410 private_floating_network_cidr: { get_param: private_floating_network_cidr }
411 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
sgudzb94b4c62020-02-05 13:21:25 +0200412 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200413 control_network_cidr: { get_param: control_network_cidr }
sgudzb94b4c62020-02-05 13:21:25 +0200414 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200415 functions_override: { get_param: functions_override }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200416 storage_frontend_interface: { get_param: storage_frontend_interface }
417 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
418 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
419 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
420 storage_backend_interface: { get_param: storage_backend_interface }
421 storage_backend_network: { get_attr: [storage_network, storage_backend_network_id] }
422 storage_backend_subnet_id: { get_attr: [storage_network, storage_backend_subnet_id] }
423 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200424 hardware_metadata: { get_param: hardware_metadata}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100425
Dennis Dmitrievea894212020-03-12 21:36:43 +0200426 spares: # spares for osds/cmps
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200427 type: OS::Heat::ResourceGroup
428 depends_on:
429 - ucp
430 properties:
431 count: { get_param: spare_size }
432 resource_def:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200433 type: MCP2::SrvInstancesCephOSD
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200434 properties:
435 metadata: { get_param: spare_metadata }
436 node_type: "spare"
437 key_name: { get_param: "OS::stack_name" }
438 image: { get_param: image }
439 flavor: { get_param: spares_flavor }
440 docker_ee_url: { get_param: docker_ee_url }
441 docker_ee_release: { get_param: docker_ee_release }
442 accessible_network: { get_attr: [accessible_network, public_network] }
443 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
444 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
445 private_floating_interface: { get_param: private_floating_interface }
446 private_floating_network_cidr: { get_param: private_floating_network_cidr }
447 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
448 public_net_id: { get_param: public_net_id }
449 control_network_cidr: { get_param: control_network_cidr }
450 ucp_master_host: { get_attr: [ucp, server_private_ip] }
451 functions_override: { get_param: functions_override }
452 storage_frontend_interface: { get_param: storage_frontend_interface }
453 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
454 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
455 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200456 storage_backend_interface: { get_param: storage_backend_interface }
457 storage_backend_network: { get_attr: [storage_network, storage_backend_network_id] }
458 storage_backend_subnet_id: { get_attr: [storage_network, storage_backend_subnet_id] }
459 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200460 hardware_metadata: { get_param: hardware_metadata}
461
sgudz43eb82b2020-02-11 16:36:48 +0200462 ntws:
463 type: OS::Heat::ResourceGroup
464 depends_on:
465 - ucp
466 properties:
467 count: { get_param: ntw_size }
468 resource_def:
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200469 type: MCP2::SrvInstancesCeph
sgudz43eb82b2020-02-11 16:36:48 +0200470 properties:
471 metadata: { get_param: ntw_metadata }
472 node_type: "worker"
473 key_name: { get_param: "OS::stack_name" }
474 image: { get_param: image }
475 flavor: { get_param: ntws_flavor }
476 docker_ee_url: { get_param: docker_ee_url }
477 docker_ee_release: { get_param: docker_ee_release }
478 accessible_network: { get_attr: [accessible_network, public_network] }
479 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
480 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
481 private_floating_interface: { get_param: private_floating_interface }
482 private_floating_network_cidr: { get_param: private_floating_network_cidr }
483 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
484 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200485 control_network_cidr: { get_param: control_network_cidr }
sgudz43eb82b2020-02-11 16:36:48 +0200486 ucp_master_host: { get_attr: [ucp, server_private_ip] }
487 functions_override: { get_param: functions_override }
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200488 storage_frontend_interface: { get_param: storage_frontend_interface }
489 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
490 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
491 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200492 hardware_metadata: { get_param: hardware_metadata}
sgudz43eb82b2020-02-11 16:36:48 +0200493
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100494outputs:
495 ucp_ips:
496 description: Private IP addresses of the deployed ucp instances
497 value: { get_attr: [ucp, server_public_ip] }
498 masters_ips:
499 description: Private IP addresses of the deployed masters instances
500 value: { get_attr: [masters, server_public_ip] }
501 workers_ips:
502 description: Private IP addresses of the deployed worker instances
503 value: { get_attr: [workers, server_public_ip] }
504 cmps_ips:
505 description: Private IP addresses of the deployed cmp instances
506 value: { get_attr: [cmps, server_public_ip] }
507 gtws_ips:
508 description: Private IP addresses of the deployed gtw instances
509 value: { get_attr: [gtws, server_public_ip] }
sgudzb94b4c62020-02-05 13:21:25 +0200510 lmas_ips:
511 description: Private IP addresses of the deployed lma instances
512 value: { get_attr: [lmas, server_public_ip] }
513 osds_ips:
514 description: Private IP addresses of the deployed osd instances
515 value: { get_attr: [osds, server_public_ip] }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200516 spares_ips:
517 description: Private IP addresses of the deployed spare instances
518 value: { get_attr: [spares, server_public_ip] }
sgudz43eb82b2020-02-11 16:36:48 +0200519 ntws_ips:
520 description: Private IP addresses of the deployed contrail instances
521 value: { get_attr: [ntws, server_public_ip] }
Oleh Hryhorov404e9572020-01-21 18:57:22 +0200522 worker_private_floating_ips:
523 description: IPs might be used as gateway
524 value: { get_attr: [workers, server_private_floating_ip] }
Oleh Hryhorov0019f592020-01-23 11:50:12 +0200525 private_floating_cidr:
526 value: { get_param: private_floating_network_cidr }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200527 private_floating_network_pool_start:
528 value: { get_param: private_floating_network_pool_start }
529 private_floating_network_pool_end:
530 value: { get_param: private_floating_network_pool_end }
531 private_floating_network_gateway:
532 value: { get_param: private_floating_network_gateway }
Oleh Hryhorov367e3ff2020-02-13 10:35:52 +0200533 tunnel_interface:
534 value: { get_param: tunnel_interface }
535 live_migration_interface:
536 value: { get_param: live_migration_interface }
537 metallb_address_pools:
538 value: { get_param: metallb_address_pools }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200539 ucp_wc_data:
540 description: Metadata from ucp
541 value: { get_attr: [ucp, wc_data] }
542 masters_wc_data:
543 description: Metadata from masters
544 value: { get_attr: [masters, wc_data] }
545 workers_wc_data:
546 description: Metadata from workers
547 value: { get_attr: [workers, wc_data] }
548 cmps_wc_data:
549 description: Metadata from cmps
550 value: { get_attr: [cmps, wc_data] }
551 gtws_wc_data:
552 description: Metadata from gtws
553 value: { get_attr: [gtws, wc_data] }
554 lmas_wc_data:
555 description: Metadata from lmas
556 value: { get_attr: [lmas, wc_data] }
557 osds_wc_data:
558 description: Metadata from osds
559 value: { get_attr: [osds, wc_data] }
560 ntws_wc_data:
561 description: Metadata from ntws
562 value: { get_attr: [ntws, wc_data] }
Oleh Hryhorov564a1202020-03-12 12:44:56 +0200563 storage_frontend_network_cidr:
564 description: Storage network which is used as clientNet in Ceph CR
565 value: { get_param: storage_frontend_network_cidr }
566 storage_backend_network_cidr:
567 description: Storage network which is used as clusterNet in Ceph CR
568 value: { get_param: storage_backend_network_cidr }