blob: 0ce2437151e06516a0f310ebedb1af56f2213750 [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'
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +010017 masters_size:
18 type: number
19 description: Number of masters instances to deploy
20 default: 2
21 worker_size:
22 type: number
23 description: Number of workers to deploy
24 default: 5
25 cmp_size:
26 type: number
27 description: Number of cmp workers to deploy
28 default: 0
29 gtw_size:
30 type: number
31 description: Number of gtw workers to deploy
32 default: 0
sgudzb94b4c62020-02-05 13:21:25 +020033 lma_size:
34 type: number
35 description: Number of gtw workers to deploy
36 default: 0
37 osd_size:
38 type: number
39 description: Number of gtw workers to deploy
40 default: 0
Dennis Dmitriev81da4222020-02-25 17:53:04 +020041 spare_size:
42 type: number
43 description: Number of gtw workers to deploy
44 default: 0
sgudz43eb82b2020-02-11 16:36:48 +020045 ntw_size:
46 type: number
47 description: Number of contrail nodes to deploy
48 default: 0
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +010049 ucp_boot_timeout:
50 type: number
51 description: Boot timeout for UCP instance
Vasyl Saienkof36f39c2020-03-10 00:21:42 +020052 default: 3600
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +010053 cluster_public_key:
54 type: string
Oleh Hryhorov0019f592020-01-23 11:50:12 +020055 private_floating_network_cidr:
56 type: string
57 default: '10.11.12.0/24'
Oleh Hryhorov2a7b3d72020-02-27 17:04:24 +020058 private_floating_network_ipam_pool_start:
59 type: string
60 description: pool start which is used as pool for IPAM and assigned to instances port
61 default: '10.11.12.2'
62 private_floating_network_ipam_pool_end:
63 type: string
64 description: pool end which is used as pool for IPAM and assigned to instances port
65 default: '10.11.12.99'
Oleh Hryhorovb58460e2020-02-05 15:53:48 +020066 private_floating_network_pool_start:
67 type: string
68 default: '10.11.12.100'
69 private_floating_network_pool_end:
70 type: string
71 default: '10.11.12.200'
72 private_floating_network_gateway:
73 type: string
Oleh Hryhorovd3a30242020-02-11 15:24:01 +020074 default: ''
Oleh Hryhorovb58460e2020-02-05 15:53:48 +020075 private_floating_interface:
76 description: Interface which carries floating network for child OpenStack.
77 type: string
Mateusz Lose2ad0772020-02-27 21:41:54 +010078 storage_frontend_network_cidr:
79 type: string
80 default: '10.12.0.0/24'
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +020081 storage_frontend_interface:
82 type: string
83 default: 'ens5'
84 storage_backend_network_cidr:
85 type: string
86 default: '10.11.0.0/24'
87 storage_backend_interface:
88 type: string
89 default: 'ens6'
Dennis Dmitrievea894212020-03-12 21:36:43 +020090 ucp_metadata:
91 type: json
92 default: {"role":"ucp"}
93 master_metadata:
94 type: json
95 default: {"role":"master"}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +010096 worker_metadata:
97 type: json
sgudzb94b4c62020-02-05 13:21:25 +020098 default: {}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +010099 cmp_metadata:
100 type: json
sgudzb94b4c62020-02-05 13:21:25 +0200101 default: {}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100102 gtw_metadata:
103 type: json
sgudzb94b4c62020-02-05 13:21:25 +0200104 default: {}
105 lma_metadata:
106 type: json
107 default: {}
108 osd_metadata:
109 type: json
110 default: {}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200111 spare_metadata:
112 type: json
113 default: {}
sgudz43eb82b2020-02-11 16:36:48 +0200114 ntw_metadata:
115 type: json
116 default: {}
sgudzfe58e8a2020-02-11 13:31:40 +0200117 ucp_flavor:
118 type: string
119 default: 'system.compact.openstack.control'
120 masters_flavor:
121 type: string
122 default: 'system.compact.openstack.control'
123 workers_flavor:
124 type: string
125 default: 'system.compact.openstack.control'
126 cmps_flavor:
127 type: string
128 default: 'system.compact.openstack.control'
129 gtws_flavor:
130 type: string
131 default: 'system.compact.openstack.control'
132 lmas_flavor:
133 type: string
134 default: 'system.compact.openstack.control'
135 osds_flavor:
136 type: string
Mateusz Lose2ad0772020-02-27 21:41:54 +0100137 default: 'system.virtual.ceph.osd'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200138 spares_flavor:
139 type: string
140 default: 'system.compact.openstack.control'
sgudz43eb82b2020-02-11 16:36:48 +0200141 ntws_flavor:
142 type: string
143 default: 'system.compact.openstack.control'
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200144 functions_override:
145 type: string
Vasyl Saienko9b688992020-02-13 13:50:53 +0200146 default: ''
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200147 docker_ee_url:
148 type: string
Vasyl Saienko1785c352020-03-11 11:39:40 +0200149 default: 'http://mirror-us.mcp.mirantis.net/.snapshots/docker-ee-bionic-latest'
150# default: 'https://s3-us-west-2.amazonaws.com/internal-docker-ee-builds/docker-ee-linux/ubuntu'
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200151 docker_ee_release:
152 type: string
153 default: 'stable-19.03'
Oleh Hryhorov367e3ff2020-02-13 10:35:52 +0200154 tunnel_interface:
155 type: string
156 default: ''
157 live_migration_interface:
158 type: string
159 default: ''
160 metallb_address_pools:
161 type: comma_delimited_list
162 default: ''
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200163 hardware_metadata:
164 description: The content of lab metadata.
165 default: ''
166 type: string
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100167
168resources:
169 key_pair:
170 type: OS::Nova::KeyPair
171 properties:
172 name: { get_param: "OS::stack_name" }
173 public_key: { get_param: cluster_public_key}
174 save_private_key: false
175
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200176 accessible_network:
177 type: MCP2::NetworkAcc
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100178 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200179 public_net_id: { get_param: public_net_id }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100180
181 private_floating_network:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200182 type: MCP2::NetworkPrvFl
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100183 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200184 private_floating_network_cidr: { get_param: private_floating_network_cidr }
Oleh Hryhorov2a7b3d72020-02-27 17:04:24 +0200185 private_floating_network_ipam_pool_start: { get_param: private_floating_network_ipam_pool_start }
Oleh Hryhorov7b0157d2020-02-27 18:20:11 +0200186 private_floating_network_ipam_pool_end: { get_param: private_floating_network_ipam_pool_end }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100187
Mateusz Lose2ad0772020-02-27 21:41:54 +0100188 storage_network:
189 type: MCP2::NetworkAccStorage
190 properties:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100191 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200192 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Mateusz Lose2ad0772020-02-27 21:41:54 +0100193
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100194 ucp:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100195 depends_on:
196 - accessible_network
197 - storage_network
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200198 type: MCP2::SrvInstances
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100199 properties:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200200 metadata: { get_param: ucp_metadata}
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200201 docker_ee_url: { get_param: docker_ee_url }
202 docker_ee_release: { get_param: docker_ee_release }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200203 node_type: "ucp"
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200204 key_name: { get_param: "OS::stack_name" }
205 image: { get_param: image }
206 flavor: { get_param: ucp_flavor }
207 accessible_network: { get_attr: [accessible_network, public_network] }
208 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
209 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
210 private_floating_interface: { get_param: private_floating_interface }
211 private_floating_network_cidr: { get_param: private_floating_network_cidr }
212 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
213 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200214 control_network_cidr: { get_param: control_network_cidr }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200215 functions_override: { get_param: functions_override }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200216 hardware_metadata: { get_param: hardware_metadata}
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200217
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100218 masters:
219 type: OS::Heat::ResourceGroup
220 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200221 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100222 properties:
223 count: { get_param: masters_size }
224 resource_def:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200225 type: MCP2::SrvInstances
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100226 properties:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200227 metadata: { get_param: master_metadata}
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200228 node_type: "master"
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200229 key_name: { get_param: "OS::stack_name" }
230 image: { get_param: image }
231 flavor: { get_param: masters_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200232 docker_ee_url: { get_param: docker_ee_url }
233 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200234 accessible_network: { get_attr: [accessible_network, public_network] }
235 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
236 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
237 private_floating_interface: { get_param: private_floating_interface }
238 private_floating_network_cidr: { get_param: private_floating_network_cidr }
239 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
240 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200241 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200242 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200243 functions_override: { get_param: functions_override }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200244 hardware_metadata: { get_param: hardware_metadata}
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200245
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100246 workers:
247 type: OS::Heat::ResourceGroup
248 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200249 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100250 properties:
251 count: { get_param: worker_size }
252 resource_def:
Vasyl Saienko6ff0c1b2020-03-05 07:52:02 +0200253 type: MCP2::SrvInstancesCeph
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100254 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200255 metadata: { get_param: worker_metadata}
256 node_type: "worker"
257 key_name: { get_param: "OS::stack_name" }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100258 image: { get_param: image }
Vasyl Saienko6ff0c1b2020-03-05 07:52:02 +0200259 flavor: { get_param: workers_flavor }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100260 key_name: { get_param: "OS::stack_name" }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200261 docker_ee_url: { get_param: docker_ee_url }
262 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200263 accessible_network: { get_attr: [accessible_network, public_network] }
264 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
265 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
266 private_floating_interface: { get_param: private_floating_interface }
267 private_floating_network_cidr: { get_param: private_floating_network_cidr }
268 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100269 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200270 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200271 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200272 functions_override: { get_param: functions_override }
Oleh Hryhorov1832d232020-03-05 11:33:13 +0200273 storage_frontend_interface: { get_param: storage_frontend_interface }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200274 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
275 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
276 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200277 hardware_metadata: { get_param: hardware_metadata}
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200278
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100279 cmps:
280 type: OS::Heat::ResourceGroup
281 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200282 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100283 properties:
284 count: { get_param: cmp_size }
285 resource_def:
Vasyl Saienko6ff0c1b2020-03-05 07:52:02 +0200286 type: MCP2::SrvInstancesCeph
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100287 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200288 metadata: { get_param: cmp_metadata }
289 node_type: "worker"
290 key_name: { get_param: "OS::stack_name" }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100291 image: { get_param: image }
Vasyl Saienko6ff0c1b2020-03-05 07:52:02 +0200292 flavor: { get_param: cmps_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200293 docker_ee_url: { get_param: docker_ee_url }
294 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200295 accessible_network: { get_attr: [accessible_network, public_network] }
296 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
297 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
298 private_floating_interface: { get_param: private_floating_interface }
299 private_floating_network_cidr: { get_param: private_floating_network_cidr }
300 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100301 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200302 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200303 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200304 functions_override: { get_param: functions_override }
Oleh Hryhorov1832d232020-03-05 11:33:13 +0200305 storage_frontend_interface: { get_param: storage_frontend_interface }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200306 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
307 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
308 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200309 hardware_metadata: { get_param: hardware_metadata}
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200310
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100311 gtws:
312 type: OS::Heat::ResourceGroup
313 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200314 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100315 properties:
316 count: { get_param: gtw_size }
317 resource_def:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200318 type: MCP2::SrvInstances
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100319 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200320 metadata: { get_param: gtw_metadata }
321 node_type: "worker"
322 key_name: { get_param: "OS::stack_name" }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100323 image: { get_param: image }
sgudzfe58e8a2020-02-11 13:31:40 +0200324 flavor: { get_param: gtws_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200325 docker_ee_url: { get_param: docker_ee_url }
326 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200327 accessible_network: { get_attr: [accessible_network, public_network] }
328 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
329 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
330 private_floating_interface: { get_param: private_floating_interface }
331 private_floating_network_cidr: { get_param: private_floating_network_cidr }
332 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100333 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200334 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200335 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200336 functions_override: { get_param: functions_override }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200337 hardware_metadata: { get_param: hardware_metadata}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100338
sgudzb94b4c62020-02-05 13:21:25 +0200339 lmas:
340 type: OS::Heat::ResourceGroup
341 depends_on:
342 - ucp
343 properties:
344 count: { get_param: lma_size }
345 resource_def:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100346 type: MCP2::SrvInstancesCeph
sgudzb94b4c62020-02-05 13:21:25 +0200347 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200348 metadata: { get_param: lma_metadata }
349 node_type: "worker"
350 key_name: { get_param: "OS::stack_name" }
sgudzb94b4c62020-02-05 13:21:25 +0200351 image: { get_param: image }
sgudzfe58e8a2020-02-11 13:31:40 +0200352 flavor: { get_param: lmas_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200353 docker_ee_url: { get_param: docker_ee_url }
354 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200355 accessible_network: { get_attr: [accessible_network, public_network] }
356 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
357 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
358 private_floating_interface: { get_param: private_floating_interface }
359 private_floating_network_cidr: { get_param: private_floating_network_cidr }
360 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
sgudzb94b4c62020-02-05 13:21:25 +0200361 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200362 control_network_cidr: { get_param: control_network_cidr }
sgudzb94b4c62020-02-05 13:21:25 +0200363 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200364 functions_override: { get_param: functions_override }
Oleh Hryhorov1832d232020-03-05 11:33:13 +0200365 storage_frontend_interface: { get_param: storage_frontend_interface }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200366 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
367 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
368 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200369 hardware_metadata: { get_param: hardware_metadata}
sgudzb94b4c62020-02-05 13:21:25 +0200370
371 osds:
372 type: OS::Heat::ResourceGroup
373 depends_on:
374 - ucp
375 properties:
376 count: { get_param: osd_size }
377 resource_def:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100378 type: MCP2::SrvInstancesCephOSD
sgudzb94b4c62020-02-05 13:21:25 +0200379 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200380 metadata: { get_param: osd_metadata }
381 node_type: "worker"
382 key_name: { get_param: "OS::stack_name" }
sgudzb94b4c62020-02-05 13:21:25 +0200383 image: { get_param: image }
sgudzfe58e8a2020-02-11 13:31:40 +0200384 flavor: { get_param: osds_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200385 docker_ee_url: { get_param: docker_ee_url }
386 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200387 accessible_network: { get_attr: [accessible_network, public_network] }
388 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
389 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
390 private_floating_interface: { get_param: private_floating_interface }
391 private_floating_network_cidr: { get_param: private_floating_network_cidr }
392 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
sgudzb94b4c62020-02-05 13:21:25 +0200393 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200394 control_network_cidr: { get_param: control_network_cidr }
sgudzb94b4c62020-02-05 13:21:25 +0200395 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200396 functions_override: { get_param: functions_override }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200397 storage_frontend_interface: { get_param: storage_frontend_interface }
398 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
399 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
400 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
401 storage_backend_interface: { get_param: storage_backend_interface }
402 storage_backend_network: { get_attr: [storage_network, storage_backend_network_id] }
403 storage_backend_subnet_id: { get_attr: [storage_network, storage_backend_subnet_id] }
404 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200405 hardware_metadata: { get_param: hardware_metadata}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100406
Dennis Dmitrievea894212020-03-12 21:36:43 +0200407 spares: # spares for osds/cmps
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200408 type: OS::Heat::ResourceGroup
409 depends_on:
410 - ucp
411 properties:
412 count: { get_param: spare_size }
413 resource_def:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200414 type: MCP2::SrvInstancesCephOSD
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200415 properties:
416 metadata: { get_param: spare_metadata }
417 node_type: "spare"
418 key_name: { get_param: "OS::stack_name" }
419 image: { get_param: image }
420 flavor: { get_param: spares_flavor }
421 docker_ee_url: { get_param: docker_ee_url }
422 docker_ee_release: { get_param: docker_ee_release }
423 accessible_network: { get_attr: [accessible_network, public_network] }
424 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
425 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
426 private_floating_interface: { get_param: private_floating_interface }
427 private_floating_network_cidr: { get_param: private_floating_network_cidr }
428 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
429 public_net_id: { get_param: public_net_id }
430 control_network_cidr: { get_param: control_network_cidr }
431 ucp_master_host: { get_attr: [ucp, server_private_ip] }
432 functions_override: { get_param: functions_override }
433 storage_frontend_interface: { get_param: storage_frontend_interface }
434 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
435 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
436 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200437 storage_backend_interface: { get_param: storage_backend_interface }
438 storage_backend_network: { get_attr: [storage_network, storage_backend_network_id] }
439 storage_backend_subnet_id: { get_attr: [storage_network, storage_backend_subnet_id] }
440 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200441 hardware_metadata: { get_param: hardware_metadata}
442
sgudz43eb82b2020-02-11 16:36:48 +0200443 ntws:
444 type: OS::Heat::ResourceGroup
445 depends_on:
446 - ucp
447 properties:
448 count: { get_param: ntw_size }
449 resource_def:
450 type: MCP2::SrvInstances
451 properties:
452 metadata: { get_param: ntw_metadata }
453 node_type: "worker"
454 key_name: { get_param: "OS::stack_name" }
455 image: { get_param: image }
456 flavor: { get_param: ntws_flavor }
457 docker_ee_url: { get_param: docker_ee_url }
458 docker_ee_release: { get_param: docker_ee_release }
459 accessible_network: { get_attr: [accessible_network, public_network] }
460 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
461 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
462 private_floating_interface: { get_param: private_floating_interface }
463 private_floating_network_cidr: { get_param: private_floating_network_cidr }
464 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
465 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200466 control_network_cidr: { get_param: control_network_cidr }
sgudz43eb82b2020-02-11 16:36:48 +0200467 ucp_master_host: { get_attr: [ucp, server_private_ip] }
468 functions_override: { get_param: functions_override }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200469 hardware_metadata: { get_param: hardware_metadata}
sgudz43eb82b2020-02-11 16:36:48 +0200470
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100471outputs:
472 ucp_ips:
473 description: Private IP addresses of the deployed ucp instances
474 value: { get_attr: [ucp, server_public_ip] }
475 masters_ips:
476 description: Private IP addresses of the deployed masters instances
477 value: { get_attr: [masters, server_public_ip] }
478 workers_ips:
479 description: Private IP addresses of the deployed worker instances
480 value: { get_attr: [workers, server_public_ip] }
481 cmps_ips:
482 description: Private IP addresses of the deployed cmp instances
483 value: { get_attr: [cmps, server_public_ip] }
484 gtws_ips:
485 description: Private IP addresses of the deployed gtw instances
486 value: { get_attr: [gtws, server_public_ip] }
sgudzb94b4c62020-02-05 13:21:25 +0200487 lmas_ips:
488 description: Private IP addresses of the deployed lma instances
489 value: { get_attr: [lmas, server_public_ip] }
490 osds_ips:
491 description: Private IP addresses of the deployed osd instances
492 value: { get_attr: [osds, server_public_ip] }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200493 spares_ips:
494 description: Private IP addresses of the deployed spare instances
495 value: { get_attr: [spares, server_public_ip] }
sgudz43eb82b2020-02-11 16:36:48 +0200496 ntws_ips:
497 description: Private IP addresses of the deployed contrail instances
498 value: { get_attr: [ntws, server_public_ip] }
Oleh Hryhorov404e9572020-01-21 18:57:22 +0200499 worker_private_floating_ips:
500 description: IPs might be used as gateway
501 value: { get_attr: [workers, server_private_floating_ip] }
Oleh Hryhorov0019f592020-01-23 11:50:12 +0200502 private_floating_cidr:
503 value: { get_param: private_floating_network_cidr }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200504 private_floating_network_pool_start:
505 value: { get_param: private_floating_network_pool_start }
506 private_floating_network_pool_end:
507 value: { get_param: private_floating_network_pool_end }
508 private_floating_network_gateway:
509 value: { get_param: private_floating_network_gateway }
Oleh Hryhorov367e3ff2020-02-13 10:35:52 +0200510 tunnel_interface:
511 value: { get_param: tunnel_interface }
512 live_migration_interface:
513 value: { get_param: live_migration_interface }
514 metallb_address_pools:
515 value: { get_param: metallb_address_pools }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200516 ucp_wc_data:
517 description: Metadata from ucp
518 value: { get_attr: [ucp, wc_data] }
519 masters_wc_data:
520 description: Metadata from masters
521 value: { get_attr: [masters, wc_data] }
522 workers_wc_data:
523 description: Metadata from workers
524 value: { get_attr: [workers, wc_data] }
525 cmps_wc_data:
526 description: Metadata from cmps
527 value: { get_attr: [cmps, wc_data] }
528 gtws_wc_data:
529 description: Metadata from gtws
530 value: { get_attr: [gtws, wc_data] }
531 lmas_wc_data:
532 description: Metadata from lmas
533 value: { get_attr: [lmas, wc_data] }
534 osds_wc_data:
535 description: Metadata from osds
536 value: { get_attr: [osds, wc_data] }
537 ntws_wc_data:
538 description: Metadata from ntws
539 value: { get_attr: [ntws, wc_data] }
Oleh Hryhorov564a1202020-03-12 12:44:56 +0200540 storage_frontend_network_cidr:
541 description: Storage network which is used as clientNet in Ceph CR
542 value: { get_param: storage_frontend_network_cidr }
543 storage_backend_network_cidr:
544 description: Storage network which is used as clusterNet in Ceph CR
545 value: { get_param: storage_backend_network_cidr }