blob: 5c3b390b8b6284756590ebd0f75267a02f2497d6 [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'
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +010090 worker_metadata:
91 type: json
sgudzb94b4c62020-02-05 13:21:25 +020092 default: {}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +010093 cmp_metadata:
94 type: json
sgudzb94b4c62020-02-05 13:21:25 +020095 default: {}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +010096 gtw_metadata:
97 type: json
sgudzb94b4c62020-02-05 13:21:25 +020098 default: {}
99 lma_metadata:
100 type: json
101 default: {}
102 osd_metadata:
103 type: json
104 default: {}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200105 spare_metadata:
106 type: json
107 default: {}
sgudz43eb82b2020-02-11 16:36:48 +0200108 ntw_metadata:
109 type: json
110 default: {}
sgudzfe58e8a2020-02-11 13:31:40 +0200111 ucp_flavor:
112 type: string
113 default: 'system.compact.openstack.control'
114 masters_flavor:
115 type: string
116 default: 'system.compact.openstack.control'
117 workers_flavor:
118 type: string
119 default: 'system.compact.openstack.control'
120 cmps_flavor:
121 type: string
122 default: 'system.compact.openstack.control'
123 gtws_flavor:
124 type: string
125 default: 'system.compact.openstack.control'
126 lmas_flavor:
127 type: string
128 default: 'system.compact.openstack.control'
129 osds_flavor:
130 type: string
Mateusz Lose2ad0772020-02-27 21:41:54 +0100131 default: 'system.virtual.ceph.osd'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200132 spares_flavor:
133 type: string
134 default: 'system.compact.openstack.control'
sgudz43eb82b2020-02-11 16:36:48 +0200135 ntws_flavor:
136 type: string
137 default: 'system.compact.openstack.control'
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200138 functions_override:
139 type: string
Vasyl Saienko9b688992020-02-13 13:50:53 +0200140 default: ''
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200141 docker_ee_url:
142 type: string
Vasyl Saienko1785c352020-03-11 11:39:40 +0200143 default: 'http://mirror-us.mcp.mirantis.net/.snapshots/docker-ee-bionic-latest'
144# default: 'https://s3-us-west-2.amazonaws.com/internal-docker-ee-builds/docker-ee-linux/ubuntu'
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200145 docker_ee_release:
146 type: string
147 default: 'stable-19.03'
Oleh Hryhorov367e3ff2020-02-13 10:35:52 +0200148 tunnel_interface:
149 type: string
150 default: ''
151 live_migration_interface:
152 type: string
153 default: ''
154 metallb_address_pools:
155 type: comma_delimited_list
156 default: ''
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200157 hardware_metadata:
158 description: The content of lab metadata.
159 default: ''
160 type: string
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100161
162resources:
163 key_pair:
164 type: OS::Nova::KeyPair
165 properties:
166 name: { get_param: "OS::stack_name" }
167 public_key: { get_param: cluster_public_key}
168 save_private_key: false
169
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200170 accessible_network:
171 type: MCP2::NetworkAcc
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100172 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200173 public_net_id: { get_param: public_net_id }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100174
175 private_floating_network:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200176 type: MCP2::NetworkPrvFl
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100177 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200178 private_floating_network_cidr: { get_param: private_floating_network_cidr }
Oleh Hryhorov2a7b3d72020-02-27 17:04:24 +0200179 private_floating_network_ipam_pool_start: { get_param: private_floating_network_ipam_pool_start }
Oleh Hryhorov7b0157d2020-02-27 18:20:11 +0200180 private_floating_network_ipam_pool_end: { get_param: private_floating_network_ipam_pool_end }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100181
Mateusz Lose2ad0772020-02-27 21:41:54 +0100182 storage_network:
183 type: MCP2::NetworkAccStorage
184 properties:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100185 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200186 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Mateusz Lose2ad0772020-02-27 21:41:54 +0100187
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100188 ucp:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100189 depends_on:
190 - accessible_network
191 - storage_network
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200192 type: MCP2::SrvInstances
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100193 properties:
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100194 metadata: {"role":"ucp"}
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200195 docker_ee_url: { get_param: docker_ee_url }
196 docker_ee_release: { get_param: docker_ee_release }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200197 node_type: "ucp"
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200198 key_name: { get_param: "OS::stack_name" }
199 image: { get_param: image }
200 flavor: { get_param: ucp_flavor }
201 accessible_network: { get_attr: [accessible_network, public_network] }
202 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
203 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
204 private_floating_interface: { get_param: private_floating_interface }
205 private_floating_network_cidr: { get_param: private_floating_network_cidr }
206 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
207 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200208 control_network_cidr: { get_param: control_network_cidr }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200209 functions_override: { get_param: functions_override }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200210 hardware_metadata: { get_param: hardware_metadata}
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200211
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100212 masters:
213 type: OS::Heat::ResourceGroup
214 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200215 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100216 properties:
217 count: { get_param: masters_size }
218 resource_def:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200219 type: MCP2::SrvInstances
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100220 properties:
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100221 metadata: {"role":"master"}
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200222 node_type: "master"
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200223 key_name: { get_param: "OS::stack_name" }
224 image: { get_param: image }
225 flavor: { get_param: masters_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200226 docker_ee_url: { get_param: docker_ee_url }
227 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200228 accessible_network: { get_attr: [accessible_network, public_network] }
229 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
230 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
231 private_floating_interface: { get_param: private_floating_interface }
232 private_floating_network_cidr: { get_param: private_floating_network_cidr }
233 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
234 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200235 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200236 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200237 functions_override: { get_param: functions_override }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200238 hardware_metadata: { get_param: hardware_metadata}
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200239
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100240 workers:
241 type: OS::Heat::ResourceGroup
242 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200243 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100244 properties:
245 count: { get_param: worker_size }
246 resource_def:
Vasyl Saienko6ff0c1b2020-03-05 07:52:02 +0200247 type: MCP2::SrvInstancesCeph
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100248 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200249 metadata: { get_param: worker_metadata}
250 node_type: "worker"
251 key_name: { get_param: "OS::stack_name" }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100252 image: { get_param: image }
Vasyl Saienko6ff0c1b2020-03-05 07:52:02 +0200253 flavor: { get_param: workers_flavor }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100254 key_name: { get_param: "OS::stack_name" }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200255 docker_ee_url: { get_param: docker_ee_url }
256 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200257 accessible_network: { get_attr: [accessible_network, public_network] }
258 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
259 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
260 private_floating_interface: { get_param: private_floating_interface }
261 private_floating_network_cidr: { get_param: private_floating_network_cidr }
262 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100263 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200264 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200265 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200266 functions_override: { get_param: functions_override }
Oleh Hryhorov1832d232020-03-05 11:33:13 +0200267 storage_frontend_interface: { get_param: storage_frontend_interface }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200268 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
269 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
270 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200271 hardware_metadata: { get_param: hardware_metadata}
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200272
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100273 cmps:
274 type: OS::Heat::ResourceGroup
275 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200276 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100277 properties:
278 count: { get_param: cmp_size }
279 resource_def:
Vasyl Saienko6ff0c1b2020-03-05 07:52:02 +0200280 type: MCP2::SrvInstancesCeph
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100281 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200282 metadata: { get_param: cmp_metadata }
283 node_type: "worker"
284 key_name: { get_param: "OS::stack_name" }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100285 image: { get_param: image }
Vasyl Saienko6ff0c1b2020-03-05 07:52:02 +0200286 flavor: { get_param: cmps_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200287 docker_ee_url: { get_param: docker_ee_url }
288 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200289 accessible_network: { get_attr: [accessible_network, public_network] }
290 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
291 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
292 private_floating_interface: { get_param: private_floating_interface }
293 private_floating_network_cidr: { get_param: private_floating_network_cidr }
294 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100295 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200296 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200297 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200298 functions_override: { get_param: functions_override }
Oleh Hryhorov1832d232020-03-05 11:33:13 +0200299 storage_frontend_interface: { get_param: storage_frontend_interface }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200300 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
301 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
302 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200303 hardware_metadata: { get_param: hardware_metadata}
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200304
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100305 gtws:
306 type: OS::Heat::ResourceGroup
307 depends_on:
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200308 - ucp
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100309 properties:
310 count: { get_param: gtw_size }
311 resource_def:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200312 type: MCP2::SrvInstances
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100313 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200314 metadata: { get_param: gtw_metadata }
315 node_type: "worker"
316 key_name: { get_param: "OS::stack_name" }
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100317 image: { get_param: image }
sgudzfe58e8a2020-02-11 13:31:40 +0200318 flavor: { get_param: gtws_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200319 docker_ee_url: { get_param: docker_ee_url }
320 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200321 accessible_network: { get_attr: [accessible_network, public_network] }
322 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
323 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
324 private_floating_interface: { get_param: private_floating_interface }
325 private_floating_network_cidr: { get_param: private_floating_network_cidr }
326 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100327 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200328 control_network_cidr: { get_param: control_network_cidr }
Vasyl Saienko3ab29c92020-01-03 10:39:03 +0200329 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200330 functions_override: { get_param: functions_override }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200331 hardware_metadata: { get_param: hardware_metadata}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100332
sgudzb94b4c62020-02-05 13:21:25 +0200333 lmas:
334 type: OS::Heat::ResourceGroup
335 depends_on:
336 - ucp
337 properties:
338 count: { get_param: lma_size }
339 resource_def:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100340 type: MCP2::SrvInstancesCeph
sgudzb94b4c62020-02-05 13:21:25 +0200341 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200342 metadata: { get_param: lma_metadata }
343 node_type: "worker"
344 key_name: { get_param: "OS::stack_name" }
sgudzb94b4c62020-02-05 13:21:25 +0200345 image: { get_param: image }
sgudzfe58e8a2020-02-11 13:31:40 +0200346 flavor: { get_param: lmas_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200347 docker_ee_url: { get_param: docker_ee_url }
348 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200349 accessible_network: { get_attr: [accessible_network, public_network] }
350 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
351 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
352 private_floating_interface: { get_param: private_floating_interface }
353 private_floating_network_cidr: { get_param: private_floating_network_cidr }
354 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
sgudzb94b4c62020-02-05 13:21:25 +0200355 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200356 control_network_cidr: { get_param: control_network_cidr }
sgudzb94b4c62020-02-05 13:21:25 +0200357 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200358 functions_override: { get_param: functions_override }
Oleh Hryhorov1832d232020-03-05 11:33:13 +0200359 storage_frontend_interface: { get_param: storage_frontend_interface }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200360 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
361 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
362 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200363 hardware_metadata: { get_param: hardware_metadata}
sgudzb94b4c62020-02-05 13:21:25 +0200364
365 osds:
366 type: OS::Heat::ResourceGroup
367 depends_on:
368 - ucp
369 properties:
370 count: { get_param: osd_size }
371 resource_def:
Mateusz Lose2ad0772020-02-27 21:41:54 +0100372 type: MCP2::SrvInstancesCephOSD
sgudzb94b4c62020-02-05 13:21:25 +0200373 properties:
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200374 metadata: { get_param: osd_metadata }
375 node_type: "worker"
376 key_name: { get_param: "OS::stack_name" }
sgudzb94b4c62020-02-05 13:21:25 +0200377 image: { get_param: image }
sgudzfe58e8a2020-02-11 13:31:40 +0200378 flavor: { get_param: osds_flavor }
Mykyta Karpin5ed5fd82020-01-27 18:23:29 +0200379 docker_ee_url: { get_param: docker_ee_url }
380 docker_ee_release: { get_param: docker_ee_release }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200381 accessible_network: { get_attr: [accessible_network, public_network] }
382 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
383 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
384 private_floating_interface: { get_param: private_floating_interface }
385 private_floating_network_cidr: { get_param: private_floating_network_cidr }
386 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
sgudzb94b4c62020-02-05 13:21:25 +0200387 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200388 control_network_cidr: { get_param: control_network_cidr }
sgudzb94b4c62020-02-05 13:21:25 +0200389 ucp_master_host: { get_attr: [ucp, server_private_ip] }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200390 functions_override: { get_param: functions_override }
Oleh Hryhorovdccb1cd2020-03-04 15:52:55 +0200391 storage_frontend_interface: { get_param: storage_frontend_interface }
392 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
393 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
394 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
395 storage_backend_interface: { get_param: storage_backend_interface }
396 storage_backend_network: { get_attr: [storage_network, storage_backend_network_id] }
397 storage_backend_subnet_id: { get_attr: [storage_network, storage_backend_subnet_id] }
398 storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200399 hardware_metadata: { get_param: hardware_metadata}
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100400
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200401 spares: # spares for workers
402 type: OS::Heat::ResourceGroup
403 depends_on:
404 - ucp
405 properties:
406 count: { get_param: spare_size }
407 resource_def:
408 type: MCP2::SrvInstancesCeph
409 properties:
410 metadata: { get_param: spare_metadata }
411 node_type: "spare"
412 key_name: { get_param: "OS::stack_name" }
413 image: { get_param: image }
414 flavor: { get_param: spares_flavor }
415 docker_ee_url: { get_param: docker_ee_url }
416 docker_ee_release: { get_param: docker_ee_release }
417 accessible_network: { get_attr: [accessible_network, public_network] }
418 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
419 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
420 private_floating_interface: { get_param: private_floating_interface }
421 private_floating_network_cidr: { get_param: private_floating_network_cidr }
422 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
423 public_net_id: { get_param: public_net_id }
424 control_network_cidr: { get_param: control_network_cidr }
425 ucp_master_host: { get_attr: [ucp, server_private_ip] }
426 functions_override: { get_param: functions_override }
427 storage_frontend_interface: { get_param: storage_frontend_interface }
428 storage_frontend_network: { get_attr: [storage_network, storage_frontend_network_id] }
429 storage_frontend_subnet_id: { get_attr: [storage_network, storage_frontend_subnet_id] }
430 storage_frontend_network_cidr: { get_param: storage_frontend_network_cidr }
431 hardware_metadata: { get_param: hardware_metadata}
432
sgudz43eb82b2020-02-11 16:36:48 +0200433 ntws:
434 type: OS::Heat::ResourceGroup
435 depends_on:
436 - ucp
437 properties:
438 count: { get_param: ntw_size }
439 resource_def:
440 type: MCP2::SrvInstances
441 properties:
442 metadata: { get_param: ntw_metadata }
443 node_type: "worker"
444 key_name: { get_param: "OS::stack_name" }
445 image: { get_param: image }
446 flavor: { get_param: ntws_flavor }
447 docker_ee_url: { get_param: docker_ee_url }
448 docker_ee_release: { get_param: docker_ee_release }
449 accessible_network: { get_attr: [accessible_network, public_network] }
450 private_floating_network: { get_attr: [private_floating_network, private_floating_network_id] }
451 private_floating_subnet_id: { get_attr: [private_floating_network, private_floating_subnet_id] }
452 private_floating_interface: { get_param: private_floating_interface }
453 private_floating_network_cidr: { get_param: private_floating_network_cidr }
454 accessible_subnet_id: { get_attr: [accessible_network, accessible_subnet_id]}
455 public_net_id: { get_param: public_net_id }
Vasyl Saienko0fa6f192020-03-06 16:08:51 +0200456 control_network_cidr: { get_param: control_network_cidr }
sgudz43eb82b2020-02-11 16:36:48 +0200457 ucp_master_host: { get_attr: [ucp, server_private_ip] }
458 functions_override: { get_param: functions_override }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200459 hardware_metadata: { get_param: hardware_metadata}
sgudz43eb82b2020-02-11 16:36:48 +0200460
Gerrit MCPbbf9d5d2019-12-19 13:47:41 +0100461outputs:
462 ucp_ips:
463 description: Private IP addresses of the deployed ucp instances
464 value: { get_attr: [ucp, server_public_ip] }
465 masters_ips:
466 description: Private IP addresses of the deployed masters instances
467 value: { get_attr: [masters, server_public_ip] }
468 workers_ips:
469 description: Private IP addresses of the deployed worker instances
470 value: { get_attr: [workers, server_public_ip] }
471 cmps_ips:
472 description: Private IP addresses of the deployed cmp instances
473 value: { get_attr: [cmps, server_public_ip] }
474 gtws_ips:
475 description: Private IP addresses of the deployed gtw instances
476 value: { get_attr: [gtws, server_public_ip] }
sgudzb94b4c62020-02-05 13:21:25 +0200477 lmas_ips:
478 description: Private IP addresses of the deployed lma instances
479 value: { get_attr: [lmas, server_public_ip] }
480 osds_ips:
481 description: Private IP addresses of the deployed osd instances
482 value: { get_attr: [osds, server_public_ip] }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200483 spares_ips:
484 description: Private IP addresses of the deployed spare instances
485 value: { get_attr: [spares, server_public_ip] }
sgudz43eb82b2020-02-11 16:36:48 +0200486 ntws_ips:
487 description: Private IP addresses of the deployed contrail instances
488 value: { get_attr: [ntws, server_public_ip] }
Oleh Hryhorov404e9572020-01-21 18:57:22 +0200489 worker_private_floating_ips:
490 description: IPs might be used as gateway
491 value: { get_attr: [workers, server_private_floating_ip] }
Oleh Hryhorov0019f592020-01-23 11:50:12 +0200492 private_floating_cidr:
493 value: { get_param: private_floating_network_cidr }
Oleh Hryhorovb58460e2020-02-05 15:53:48 +0200494 private_floating_network_pool_start:
495 value: { get_param: private_floating_network_pool_start }
496 private_floating_network_pool_end:
497 value: { get_param: private_floating_network_pool_end }
498 private_floating_network_gateway:
499 value: { get_param: private_floating_network_gateway }
Oleh Hryhorov367e3ff2020-02-13 10:35:52 +0200500 tunnel_interface:
501 value: { get_param: tunnel_interface }
502 live_migration_interface:
503 value: { get_param: live_migration_interface }
504 metallb_address_pools:
505 value: { get_param: metallb_address_pools }
Vasyl Saienkof9ee1582020-03-02 16:53:41 +0200506 ucp_wc_data:
507 description: Metadata from ucp
508 value: { get_attr: [ucp, wc_data] }
509 masters_wc_data:
510 description: Metadata from masters
511 value: { get_attr: [masters, wc_data] }
512 workers_wc_data:
513 description: Metadata from workers
514 value: { get_attr: [workers, wc_data] }
515 cmps_wc_data:
516 description: Metadata from cmps
517 value: { get_attr: [cmps, wc_data] }
518 gtws_wc_data:
519 description: Metadata from gtws
520 value: { get_attr: [gtws, wc_data] }
521 lmas_wc_data:
522 description: Metadata from lmas
523 value: { get_attr: [lmas, wc_data] }
524 osds_wc_data:
525 description: Metadata from osds
526 value: { get_attr: [osds, wc_data] }
527 ntws_wc_data:
528 description: Metadata from ntws
529 value: { get_attr: [ntws, wc_data] }
Oleh Hryhorov564a1202020-03-12 12:44:56 +0200530 storage_frontend_network_cidr:
531 description: Storage network which is used as clientNet in Ceph CR
532 value: { get_param: storage_frontend_network_cidr }
533 storage_backend_network_cidr:
534 description: Storage network which is used as clusterNet in Ceph CR
535 value: { get_param: storage_backend_network_cidr }