blob: d7d165fb8c23315bc6603870e4e72a36f69099fa [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 Saienkoff5b8642020-03-26 18:20:34 +0200253 type: MCP2::SrvInstancesCephOSD
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 Saienkoff5b8642020-03-26 18:20:34 +0200277 storage_backend_interface: { get_param: storage_backend_interface }
278 storage_backend_network: { get_attr: [storage_network, storage_backend_network_id] }
279 storage_backend_subnet_id: { get_attr: [storage_network, storage_backend_subnet_id] }
280 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200281 hardware_metadata: { get_param: hardware_metadata}
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200282
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100283 cmps:
284 type: OS::Heat::ResourceGroup
285 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200286 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100287 properties:
288 count: { get_param: cmp_size }
289 resource_def:
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200290 type: MCP2::SrvInstancesCephOSD
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100291 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200292 metadata: { get_param: cmp_metadata }
293 node_type: "worker"
294 key_name: { get_param: "OS::stack_name" }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100295 image: { get_param: image }
Vasyl Saienko6ff0c1b2020-03-05 07:52:02 +0200296 flavor: { get_param: cmps_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200297 docker_ee_url: { get_param: docker_ee_url }
298 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200299 accessible_network: { get_attr: [accessible_network, public_network] }
300 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
301 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
302 private_floating_interface: { get_param: private_floating_interface }
303 private_floating_network_cidr: { get_param: private_floating_network_cidr }
304 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100305 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200306 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200307 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200308 functions_override: { get_param: functions_override }
Oleh Hryhorov1832d232020-03-05 11:33:13 +0200309 storage_frontend_interface: { get_param: storage_frontend_interface }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200310 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
311 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
312 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200313 storage_backend_interface: { get_param: storage_backend_interface }
314 storage_backend_network: { get_attr: [storage_network, storage_backend_network_id] }
315 storage_backend_subnet_id: { get_attr: [storage_network, storage_backend_subnet_id] }
316 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200317 hardware_metadata: { get_param: hardware_metadata}
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200318
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100319 gtws:
320 type: OS::Heat::ResourceGroup
321 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200322 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100323 properties:
324 count: { get_param: gtw_size }
325 resource_def:
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200326 type: MCP2::SrvInstancesCeph
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100327 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200328 metadata: { get_param: gtw_metadata }
329 node_type: "worker"
330 key_name: { get_param: "OS::stack_name" }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100331 image: { get_param: image }
sgudzfe58e8a2020-02-11 13:31:40 +0200332 flavor: { get_param: gtws_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200333 docker_ee_url: { get_param: docker_ee_url }
334 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200335 accessible_network: { get_attr: [accessible_network, public_network] }
336 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
337 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
338 private_floating_interface: { get_param: private_floating_interface }
339 private_floating_network_cidr: { get_param: private_floating_network_cidr }
340 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100341 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200342 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200343 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200344 functions_override: { get_param: functions_override }
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200345 storage_frontend_interface: { get_param: storage_frontend_interface }
346 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
347 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
348 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200349 hardware_metadata: { get_param: hardware_metadata}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100350
sgudzb94b4c62020-02-05 13:21:25 +0200351 lmas:
352 type: OS::Heat::ResourceGroup
353 depends_on:
354 - ucp
355 properties:
356 count: { get_param: lma_size }
357 resource_def:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100358 type: MCP2::SrvInstancesCeph
sgudzb94b4c62020-02-05 13:21:25 +0200359 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200360 metadata: { get_param: lma_metadata }
361 node_type: "worker"
362 key_name: { get_param: "OS::stack_name" }
sgudzb94b4c62020-02-05 13:21:25 +0200363 image: { get_param: image }
sgudzfe58e8a2020-02-11 13:31:40 +0200364 flavor: { get_param: lmas_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200365 docker_ee_url: { get_param: docker_ee_url }
366 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200367 accessible_network: { get_attr: [accessible_network, public_network] }
368 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
369 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
370 private_floating_interface: { get_param: private_floating_interface }
371 private_floating_network_cidr: { get_param: private_floating_network_cidr }
372 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
sgudzb94b4c62020-02-05 13:21:25 +0200373 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200374 control_network_cidr: { get_param: control_network_cidr }
sgudzb94b4c62020-02-05 13:21:25 +0200375 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200376 functions_override: { get_param: functions_override }
Oleh Hryhorov1832d232020-03-05 11:33:13 +0200377 storage_frontend_interface: { get_param: storage_frontend_interface }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200378 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
379 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
380 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200381 hardware_metadata: { get_param: hardware_metadata}
sgudzb94b4c62020-02-05 13:21:25 +0200382
383 osds:
384 type: OS::Heat::ResourceGroup
385 depends_on:
386 - ucp
387 properties:
388 count: { get_param: osd_size }
389 resource_def:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100390 type: MCP2::SrvInstancesCephOSD
sgudzb94b4c62020-02-05 13:21:25 +0200391 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200392 metadata: { get_param: osd_metadata }
393 node_type: "worker"
394 key_name: { get_param: "OS::stack_name" }
sgudzb94b4c62020-02-05 13:21:25 +0200395 image: { get_param: image }
sgudzfe58e8a2020-02-11 13:31:40 +0200396 flavor: { get_param: osds_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200397 docker_ee_url: { get_param: docker_ee_url }
398 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200399 accessible_network: { get_attr: [accessible_network, public_network] }
400 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
401 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
402 private_floating_interface: { get_param: private_floating_interface }
403 private_floating_network_cidr: { get_param: private_floating_network_cidr }
404 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
sgudzb94b4c62020-02-05 13:21:25 +0200405 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200406 control_network_cidr: { get_param: control_network_cidr }
sgudzb94b4c62020-02-05 13:21:25 +0200407 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200408 functions_override: { get_param: functions_override }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200409 storage_frontend_interface: { get_param: storage_frontend_interface }
410 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
411 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
412 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
413 storage_backend_interface: { get_param: storage_backend_interface }
414 storage_backend_network: { get_attr: [storage_network, storage_backend_network_id] }
415 storage_backend_subnet_id: { get_attr: [storage_network, storage_backend_subnet_id] }
416 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200417 hardware_metadata: { get_param: hardware_metadata}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100418
Dennis Dmitrievea894212020-03-12 21:36:43 +0200419 spares: # spares for osds/cmps
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200420 type: OS::Heat::ResourceGroup
421 depends_on:
422 - ucp
423 properties:
424 count: { get_param: spare_size }
425 resource_def:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200426 type: MCP2::SrvInstancesCephOSD
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200427 properties:
428 metadata: { get_param: spare_metadata }
429 node_type: "spare"
430 key_name: { get_param: "OS::stack_name" }
431 image: { get_param: image }
432 flavor: { get_param: spares_flavor }
433 docker_ee_url: { get_param: docker_ee_url }
434 docker_ee_release: { get_param: docker_ee_release }
435 accessible_network: { get_attr: [accessible_network, public_network] }
436 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
437 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
438 private_floating_interface: { get_param: private_floating_interface }
439 private_floating_network_cidr: { get_param: private_floating_network_cidr }
440 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
441 public_net_id: { get_param: public_net_id }
442 control_network_cidr: { get_param: control_network_cidr }
443 ucp_master_host: { get_attr: [ucp, server_private_ip] }
444 functions_override: { get_param: functions_override }
445 storage_frontend_interface: { get_param: storage_frontend_interface }
446 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
447 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
448 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200449 storage_backend_interface: { get_param: storage_backend_interface }
450 storage_backend_network: { get_attr: [storage_network, storage_backend_network_id] }
451 storage_backend_subnet_id: { get_attr: [storage_network, storage_backend_subnet_id] }
452 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200453 hardware_metadata: { get_param: hardware_metadata}
454
sgudz43eb82b2020-02-11 16:36:48 +0200455 ntws:
456 type: OS::Heat::ResourceGroup
457 depends_on:
458 - ucp
459 properties:
460 count: { get_param: ntw_size }
461 resource_def:
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200462 type: MCP2::SrvInstancesCeph
sgudz43eb82b2020-02-11 16:36:48 +0200463 properties:
464 metadata: { get_param: ntw_metadata }
465 node_type: "worker"
466 key_name: { get_param: "OS::stack_name" }
467 image: { get_param: image }
468 flavor: { get_param: ntws_flavor }
469 docker_ee_url: { get_param: docker_ee_url }
470 docker_ee_release: { get_param: docker_ee_release }
471 accessible_network: { get_attr: [accessible_network, public_network] }
472 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
473 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
474 private_floating_interface: { get_param: private_floating_interface }
475 private_floating_network_cidr: { get_param: private_floating_network_cidr }
476 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
477 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200478 control_network_cidr: { get_param: control_network_cidr }
sgudz43eb82b2020-02-11 16:36:48 +0200479 ucp_master_host: { get_attr: [ucp, server_private_ip] }
480 functions_override: { get_param: functions_override }
Vasyl Saienkoff5b8642020-03-26 18:20:34 +0200481 storage_frontend_interface: { get_param: storage_frontend_interface }
482 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
483 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
484 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200485 hardware_metadata: { get_param: hardware_metadata}
sgudz43eb82b2020-02-11 16:36:48 +0200486
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100487outputs:
488 ucp_ips:
489 description: Private IP addresses of the deployed ucp instances
490 value: { get_attr: [ucp, server_public_ip] }
491 masters_ips:
492 description: Private IP addresses of the deployed masters instances
493 value: { get_attr: [masters, server_public_ip] }
494 workers_ips:
495 description: Private IP addresses of the deployed worker instances
496 value: { get_attr: [workers, server_public_ip] }
497 cmps_ips:
498 description: Private IP addresses of the deployed cmp instances
499 value: { get_attr: [cmps, server_public_ip] }
500 gtws_ips:
501 description: Private IP addresses of the deployed gtw instances
502 value: { get_attr: [gtws, server_public_ip] }
sgudzb94b4c62020-02-05 13:21:25 +0200503 lmas_ips:
504 description: Private IP addresses of the deployed lma instances
505 value: { get_attr: [lmas, server_public_ip] }
506 osds_ips:
507 description: Private IP addresses of the deployed osd instances
508 value: { get_attr: [osds, server_public_ip] }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200509 spares_ips:
510 description: Private IP addresses of the deployed spare instances
511 value: { get_attr: [spares, server_public_ip] }
sgudz43eb82b2020-02-11 16:36:48 +0200512 ntws_ips:
513 description: Private IP addresses of the deployed contrail instances
514 value: { get_attr: [ntws, server_public_ip] }
Oleh Hryhorov404e9572020-01-21 18:57:22 +0200515 worker_private_floating_ips:
516 description: IPs might be used as gateway
517 value: { get_attr: [workers, server_private_floating_ip] }
Oleh Hryhorov0019f592020-01-23 11:50:12 +0200518 private_floating_cidr:
519 value: { get_param: private_floating_network_cidr }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200520 private_floating_network_pool_start:
521 value: { get_param: private_floating_network_pool_start }
522 private_floating_network_pool_end:
523 value: { get_param: private_floating_network_pool_end }
524 private_floating_network_gateway:
525 value: { get_param: private_floating_network_gateway }
Oleh Hryhorov367e3ff2020-02-13 10:35:52 +0200526 tunnel_interface:
527 value: { get_param: tunnel_interface }
528 live_migration_interface:
529 value: { get_param: live_migration_interface }
530 metallb_address_pools:
531 value: { get_param: metallb_address_pools }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200532 ucp_wc_data:
533 description: Metadata from ucp
534 value: { get_attr: [ucp, wc_data] }
535 masters_wc_data:
536 description: Metadata from masters
537 value: { get_attr: [masters, wc_data] }
538 workers_wc_data:
539 description: Metadata from workers
540 value: { get_attr: [workers, wc_data] }
541 cmps_wc_data:
542 description: Metadata from cmps
543 value: { get_attr: [cmps, wc_data] }
544 gtws_wc_data:
545 description: Metadata from gtws
546 value: { get_attr: [gtws, wc_data] }
547 lmas_wc_data:
548 description: Metadata from lmas
549 value: { get_attr: [lmas, wc_data] }
550 osds_wc_data:
551 description: Metadata from osds
552 value: { get_attr: [osds, wc_data] }
553 ntws_wc_data:
554 description: Metadata from ntws
555 value: { get_attr: [ntws, wc_data] }
Oleh Hryhorov564a1202020-03-12 12:44:56 +0200556 storage_frontend_network_cidr:
557 description: Storage network which is used as clientNet in Ceph CR
558 value: { get_param: storage_frontend_network_cidr }
559 storage_backend_network_cidr:
560 description: Storage network which is used as clusterNet in Ceph CR
561 value: { get_param: storage_backend_network_cidr }