sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 1 | --- |
| 2 | |
| 3 | heat_template_version: queens |
| 4 | |
| 5 | description: MCP environment for heat-cicd-k8s-contrail41-sl |
| 6 | |
| 7 | parameters: |
| 8 | instance_domain: |
| 9 | type: string |
| 10 | default: heat-cicd-k8s-contrail41-sl.local |
| 11 | mcp_version: |
| 12 | type: string |
| 13 | env_name: |
| 14 | type: string |
| 15 | control_subnet_cidr: |
| 16 | type: string |
| 17 | management_subnet_cidr: |
| 18 | type: string |
| 19 | management_subnet_pool_start: |
| 20 | type: string |
| 21 | management_subnet_pool_end: |
| 22 | type: string |
| 23 | management_subnet_cfg01_ip: |
| 24 | type: string |
| 25 | management_subnet_gateway_ip: |
| 26 | type: string |
| 27 | |
| 28 | key_pair: |
| 29 | type: string |
| 30 | |
| 31 | ctl_flavor: |
| 32 | type: string |
| 33 | cfg_flavor: |
| 34 | type: string |
| 35 | cid_flavor: |
| 36 | type: string |
| 37 | kvm_fake_flavor: |
| 38 | type: string |
| 39 | mon_flavor: |
| 40 | type: string |
| 41 | log_flavor: |
| 42 | type: string |
| 43 | mtr_flavor: |
| 44 | type: string |
| 45 | cmp_flavor: |
| 46 | type: string |
| 47 | cmn_flavor: |
| 48 | type: string |
| 49 | rgw_flavor: |
| 50 | type: string |
| 51 | osd_flavor: |
| 52 | type: string |
| 53 | foundation_flavor: |
| 54 | type: string |
| 55 | |
| 56 | net_public: |
| 57 | type: string |
| 58 | |
Dennis Dmitriev | cba8612 | 2019-05-24 13:41:46 +0300 | [diff] [blame] | 59 | foundation_image: |
| 60 | type: string |
| 61 | |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 62 | resources: |
| 63 | networks: |
| 64 | type: MCP::Networks |
| 65 | properties: |
| 66 | stack_name: { get_param: "OS::stack_name" } |
| 67 | env_name: { get_param: env_name } |
| 68 | |
| 69 | #flavors: |
| 70 | # type: MCP::Flavors |
| 71 | |
| 72 | cfg01_node: |
| 73 | type: MCP::MasterNode |
| 74 | depends_on: [networks] |
| 75 | properties: |
| 76 | env_name: { get_param: env_name } |
| 77 | mcp_version: { get_param: mcp_version } |
| 78 | cfg01_flavor: { get_param: cfg_flavor } |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 79 | tenant_net_static_ip: |
| 80 | list_join: |
| 81 | - '.' |
| 82 | - [ { get_attr: [networks, tenant_net_prefix] }, '15' ] |
| 83 | external_net_static_ip: |
| 84 | list_join: |
| 85 | - '.' |
| 86 | - [ { get_attr: [networks, external_net_prefix] }, '15' ] |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 87 | instance_name: cfg01 |
| 88 | instance_domain: {get_param: instance_domain} |
| 89 | network: { get_attr: [networks, network] } |
| 90 | |
| 91 | control_cluster: |
| 92 | type: MCP::MultipleInstance |
| 93 | depends_on: [cfg01_node] |
| 94 | properties: |
| 95 | env_name: { get_param: env_name } |
| 96 | mcp_version: { get_param: mcp_version } |
| 97 | instance_domain: {get_param: instance_domain} |
| 98 | instance01_name: ctl01 |
| 99 | instance02_name: ctl02 |
| 100 | instance03_name: ctl03 |
sgudz | 917e8d9 | 2019-05-21 16:20:02 +0300 | [diff] [blame] | 101 | instance01_role: k8s_controller |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 102 | instance_flavor: {get_param: ctl_flavor} |
| 103 | network: { get_attr: [networks, network] } |
| 104 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 105 | instance01_control_net_static_ip: |
| 106 | list_join: |
| 107 | - '.' |
| 108 | - [ { get_attr: [networks, control_net_prefix] }, '11' ] |
| 109 | instance02_control_net_static_ip: |
| 110 | list_join: |
| 111 | - '.' |
| 112 | - [ { get_attr: [networks, control_net_prefix] }, '12' ] |
| 113 | instance03_control_net_static_ip: |
| 114 | list_join: |
| 115 | - '.' |
| 116 | - [ { get_attr: [networks, control_net_prefix] }, '13' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 117 | instance01_tenant_net_static_ip: |
| 118 | list_join: |
| 119 | - '.' |
| 120 | - [ { get_attr: [networks, tenant_net_prefix] }, '11' ] |
| 121 | instance02_tenant_net_static_ip: |
| 122 | list_join: |
| 123 | - '.' |
| 124 | - [ { get_attr: [networks, tenant_net_prefix] }, '12' ] |
| 125 | instance03_tenant_net_static_ip: |
| 126 | list_join: |
| 127 | - '.' |
| 128 | - [ { get_attr: [networks, tenant_net_prefix] }, '13' ] |
| 129 | instance01_external_net_static_ip: |
| 130 | list_join: |
| 131 | - '.' |
| 132 | - [ { get_attr: [networks, external_net_prefix] }, '11' ] |
| 133 | instance02_external_net_static_ip: |
| 134 | list_join: |
| 135 | - '.' |
| 136 | - [ { get_attr: [networks, external_net_prefix] }, '12' ] |
| 137 | instance03_external_net_static_ip: |
| 138 | list_join: |
| 139 | - '.' |
| 140 | - [ { get_attr: [networks, external_net_prefix] }, '13' ] |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 141 | |
| 142 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 143 | |
| 144 | fake_kvm_cluster: |
| 145 | type: MCP::MultipleInstance |
| 146 | depends_on: [cfg01_node] |
| 147 | properties: |
| 148 | env_name: { get_param: env_name } |
| 149 | mcp_version: { get_param: mcp_version } |
| 150 | instance_domain: {get_param: instance_domain} |
| 151 | instance01_name: kvm01 |
| 152 | instance02_name: kvm02 |
| 153 | instance03_name: kvm03 |
| 154 | instance_flavor: {get_param: kvm_fake_flavor} |
| 155 | network: { get_attr: [networks, network] } |
| 156 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 157 | instance01_control_net_static_ip: |
| 158 | list_join: |
| 159 | - '.' |
| 160 | - [ { get_attr: [networks, control_net_prefix] }, '241' ] |
| 161 | instance02_control_net_static_ip: |
| 162 | list_join: |
| 163 | - '.' |
| 164 | - [ { get_attr: [networks, control_net_prefix] }, '242' ] |
| 165 | instance03_control_net_static_ip: |
| 166 | list_join: |
| 167 | - '.' |
| 168 | - [ { get_attr: [networks, control_net_prefix] }, '243' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 169 | instance01_tenant_net_static_ip: |
| 170 | list_join: |
| 171 | - '.' |
| 172 | - [ { get_attr: [networks, tenant_net_prefix] }, '241' ] |
| 173 | instance02_tenant_net_static_ip: |
| 174 | list_join: |
| 175 | - '.' |
| 176 | - [ { get_attr: [networks, tenant_net_prefix] }, '242' ] |
| 177 | instance03_tenant_net_static_ip: |
| 178 | list_join: |
| 179 | - '.' |
| 180 | - [ { get_attr: [networks, tenant_net_prefix] }, '243' ] |
| 181 | instance01_external_net_static_ip: |
| 182 | list_join: |
| 183 | - '.' |
| 184 | - [ { get_attr: [networks, external_net_prefix] }, '241' ] |
| 185 | instance02_external_net_static_ip: |
| 186 | list_join: |
| 187 | - '.' |
| 188 | - [ { get_attr: [networks, external_net_prefix] }, '242' ] |
| 189 | instance03_external_net_static_ip: |
| 190 | list_join: |
| 191 | - '.' |
| 192 | - [ { get_attr: [networks, external_net_prefix] }, '243' ] |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 193 | |
| 194 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 195 | |
| 196 | cicd_cluster: |
| 197 | type: MCP::MultipleInstance |
| 198 | depends_on: [cfg01_node] |
| 199 | properties: |
| 200 | env_name: { get_param: env_name } |
| 201 | mcp_version: { get_param: mcp_version } |
| 202 | instance_domain: {get_param: instance_domain} |
| 203 | instance01_name: cid01 |
| 204 | instance02_name: cid02 |
| 205 | instance03_name: cid03 |
| 206 | instance_flavor: {get_param: cid_flavor} |
| 207 | network: { get_attr: [networks, network] } |
| 208 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 209 | instance01_control_net_static_ip: |
| 210 | list_join: |
| 211 | - '.' |
| 212 | - [ { get_attr: [networks, control_net_prefix] }, '91' ] |
| 213 | instance02_control_net_static_ip: |
| 214 | list_join: |
| 215 | - '.' |
| 216 | - [ { get_attr: [networks, control_net_prefix] }, '92' ] |
| 217 | instance03_control_net_static_ip: |
| 218 | list_join: |
| 219 | - '.' |
| 220 | - [ { get_attr: [networks, control_net_prefix] }, '93' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 221 | instance01_tenant_net_static_ip: |
| 222 | list_join: |
| 223 | - '.' |
| 224 | - [ { get_attr: [networks, tenant_net_prefix] }, '91' ] |
| 225 | instance02_tenant_net_static_ip: |
| 226 | list_join: |
| 227 | - '.' |
| 228 | - [ { get_attr: [networks, tenant_net_prefix] }, '92' ] |
| 229 | instance03_tenant_net_static_ip: |
| 230 | list_join: |
| 231 | - '.' |
| 232 | - [ { get_attr: [networks, tenant_net_prefix] }, '93' ] |
| 233 | instance01_external_net_static_ip: |
| 234 | list_join: |
| 235 | - '.' |
| 236 | - [ { get_attr: [networks, external_net_prefix] }, '91' ] |
| 237 | instance02_external_net_static_ip: |
| 238 | list_join: |
| 239 | - '.' |
| 240 | - [ { get_attr: [networks, external_net_prefix] }, '92' ] |
| 241 | instance03_external_net_static_ip: |
| 242 | list_join: |
| 243 | - '.' |
| 244 | - [ { get_attr: [networks, external_net_prefix] }, '93' ] |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 245 | |
| 246 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 247 | |
| 248 | stacklight_monitor_cluster: |
| 249 | type: MCP::MultipleInstance |
| 250 | depends_on: [openstack_message_queue_cluster] |
| 251 | properties: |
| 252 | env_name: { get_param: env_name } |
| 253 | mcp_version: { get_param: mcp_version } |
| 254 | instance_domain: {get_param: instance_domain} |
| 255 | instance01_name: mon01 |
| 256 | instance02_name: mon02 |
| 257 | instance03_name: mon03 |
| 258 | instance_flavor: {get_param: mon_flavor} |
| 259 | network: { get_attr: [networks, network] } |
| 260 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 261 | instance01_control_net_static_ip: |
| 262 | list_join: |
| 263 | - '.' |
| 264 | - [ { get_attr: [networks, control_net_prefix] }, '71' ] |
| 265 | instance02_control_net_static_ip: |
| 266 | list_join: |
| 267 | - '.' |
| 268 | - [ { get_attr: [networks, control_net_prefix] }, '72' ] |
| 269 | instance03_control_net_static_ip: |
| 270 | list_join: |
| 271 | - '.' |
| 272 | - [ { get_attr: [networks, control_net_prefix] }, '73' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 273 | instance01_tenant_net_static_ip: |
| 274 | list_join: |
| 275 | - '.' |
| 276 | - [ { get_attr: [networks, tenant_net_prefix] }, '71' ] |
| 277 | instance02_tenant_net_static_ip: |
| 278 | list_join: |
| 279 | - '.' |
| 280 | - [ { get_attr: [networks, tenant_net_prefix] }, '72' ] |
| 281 | instance03_tenant_net_static_ip: |
| 282 | list_join: |
| 283 | - '.' |
| 284 | - [ { get_attr: [networks, tenant_net_prefix] }, '73' ] |
| 285 | instance01_external_net_static_ip: |
| 286 | list_join: |
| 287 | - '.' |
| 288 | - [ { get_attr: [networks, external_net_prefix] }, '71' ] |
| 289 | instance02_external_net_static_ip: |
| 290 | list_join: |
| 291 | - '.' |
| 292 | - [ { get_attr: [networks, external_net_prefix] }, '72' ] |
| 293 | instance03_external_net_static_ip: |
| 294 | list_join: |
| 295 | - '.' |
| 296 | - [ { get_attr: [networks, external_net_prefix] }, '73' ] |
| 297 | |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 298 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 299 | |
| 300 | stacklight_log_cluster: |
| 301 | type: MCP::MultipleInstance |
| 302 | depends_on: [stacklight_monitor_cluster] |
| 303 | properties: |
| 304 | env_name: { get_param: env_name } |
| 305 | mcp_version: { get_param: mcp_version } |
| 306 | instance_domain: {get_param: instance_domain} |
| 307 | instance01_name: log01 |
| 308 | instance02_name: log02 |
| 309 | instance03_name: log03 |
| 310 | instance_flavor: {get_param: log_flavor} |
| 311 | network: { get_attr: [networks, network] } |
| 312 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 313 | instance01_control_net_static_ip: |
| 314 | list_join: |
| 315 | - '.' |
| 316 | - [ { get_attr: [networks, control_net_prefix] }, '61' ] |
| 317 | instance02_control_net_static_ip: |
| 318 | list_join: |
| 319 | - '.' |
| 320 | - [ { get_attr: [networks, control_net_prefix] }, '62' ] |
| 321 | instance03_control_net_static_ip: |
| 322 | list_join: |
| 323 | - '.' |
| 324 | - [ { get_attr: [networks, control_net_prefix] }, '63' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 325 | instance01_tenant_net_static_ip: |
| 326 | list_join: |
| 327 | - '.' |
| 328 | - [ { get_attr: [networks, tenant_net_prefix] }, '61' ] |
| 329 | instance02_tenant_net_static_ip: |
| 330 | list_join: |
| 331 | - '.' |
| 332 | - [ { get_attr: [networks, tenant_net_prefix] }, '62' ] |
| 333 | instance03_tenant_net_static_ip: |
| 334 | list_join: |
| 335 | - '.' |
| 336 | - [ { get_attr: [networks, tenant_net_prefix] }, '63' ] |
| 337 | instance01_external_net_static_ip: |
| 338 | list_join: |
| 339 | - '.' |
| 340 | - [ { get_attr: [networks, external_net_prefix] }, '61' ] |
| 341 | instance02_external_net_static_ip: |
| 342 | list_join: |
| 343 | - '.' |
| 344 | - [ { get_attr: [networks, external_net_prefix] }, '62' ] |
| 345 | instance03_external_net_static_ip: |
| 346 | list_join: |
| 347 | - '.' |
| 348 | - [ { get_attr: [networks, external_net_prefix] }, '63' ] |
| 349 | |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 350 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 351 | |
| 352 | stacklight_mtr_cluster: |
| 353 | type: MCP::MultipleInstance |
| 354 | depends_on: [stacklight_log_cluster] |
| 355 | properties: |
| 356 | env_name: { get_param: env_name } |
| 357 | mcp_version: { get_param: mcp_version } |
| 358 | instance_domain: {get_param: instance_domain} |
| 359 | instance01_name: mtr01 |
| 360 | instance02_name: mtr02 |
| 361 | instance03_name: mtr03 |
| 362 | instance_flavor: {get_param: mtr_flavor} |
| 363 | network: { get_attr: [networks, network] } |
| 364 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 365 | instance01_control_net_static_ip: |
| 366 | list_join: |
| 367 | - '.' |
| 368 | - [ { get_attr: [networks, control_net_prefix] }, '86' ] |
| 369 | instance02_control_net_static_ip: |
| 370 | list_join: |
| 371 | - '.' |
| 372 | - [ { get_attr: [networks, control_net_prefix] }, '87' ] |
| 373 | instance03_control_net_static_ip: |
| 374 | list_join: |
| 375 | - '.' |
| 376 | - [ { get_attr: [networks, control_net_prefix] }, '88' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 377 | instance01_tenant_net_static_ip: |
| 378 | list_join: |
| 379 | - '.' |
| 380 | - [ { get_attr: [networks, tenant_net_prefix] }, '86' ] |
| 381 | instance02_tenant_net_static_ip: |
| 382 | list_join: |
| 383 | - '.' |
| 384 | - [ { get_attr: [networks, tenant_net_prefix] }, '87' ] |
| 385 | instance03_tenant_net_static_ip: |
| 386 | list_join: |
| 387 | - '.' |
| 388 | - [ { get_attr: [networks, tenant_net_prefix] }, '88' ] |
| 389 | instance01_external_net_static_ip: |
| 390 | list_join: |
| 391 | - '.' |
| 392 | - [ { get_attr: [networks, external_net_prefix] }, '86' ] |
| 393 | instance02_external_net_static_ip: |
| 394 | list_join: |
| 395 | - '.' |
| 396 | - [ { get_attr: [networks, external_net_prefix] }, '87' ] |
| 397 | instance03_external_net_static_ip: |
| 398 | list_join: |
| 399 | - '.' |
| 400 | - [ { get_attr: [networks, external_net_prefix] }, '88' ] |
| 401 | |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 402 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 403 | |
| 404 | ceph_cmn_cluster: |
| 405 | type: MCP::MultipleInstance |
| 406 | depends_on: [cfg01_node] |
| 407 | properties: |
| 408 | env_name: { get_param: env_name } |
| 409 | mcp_version: { get_param: mcp_version } |
| 410 | instance_domain: {get_param: instance_domain} |
| 411 | instance01_name: cmn01 |
| 412 | instance02_name: cmn02 |
| 413 | instance03_name: cmn03 |
| 414 | instance_flavor: {get_param: cmn_flavor} |
| 415 | network: { get_attr: [networks, network] } |
| 416 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 417 | instance01_control_net_static_ip: |
| 418 | list_join: |
| 419 | - '.' |
| 420 | - [ { get_attr: [networks, control_net_prefix] }, '66' ] |
| 421 | instance02_control_net_static_ip: |
| 422 | list_join: |
| 423 | - '.' |
| 424 | - [ { get_attr: [networks, control_net_prefix] }, '67' ] |
| 425 | instance03_control_net_static_ip: |
| 426 | list_join: |
| 427 | - '.' |
| 428 | - [ { get_attr: [networks, control_net_prefix] }, '68' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 429 | instance01_tenant_net_static_ip: |
| 430 | list_join: |
| 431 | - '.' |
| 432 | - [ { get_attr: [networks, tenant_net_prefix] }, '66' ] |
| 433 | instance02_tenant_net_static_ip: |
| 434 | list_join: |
| 435 | - '.' |
| 436 | - [ { get_attr: [networks, tenant_net_prefix] }, '67' ] |
| 437 | instance03_tenant_net_static_ip: |
| 438 | list_join: |
| 439 | - '.' |
| 440 | - [ { get_attr: [networks, tenant_net_prefix] }, '68' ] |
| 441 | instance01_external_net_static_ip: |
| 442 | list_join: |
| 443 | - '.' |
| 444 | - [ { get_attr: [networks, external_net_prefix] }, '66' ] |
| 445 | instance02_external_net_static_ip: |
| 446 | list_join: |
| 447 | - '.' |
| 448 | - [ { get_attr: [networks, external_net_prefix] }, '67' ] |
| 449 | instance03_external_net_static_ip: |
| 450 | list_join: |
| 451 | - '.' |
| 452 | - [ { get_attr: [networks, external_net_prefix] }, '68' ] |
| 453 | |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 454 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 455 | |
| 456 | ceph_rgw_cluster: |
| 457 | type: MCP::MultipleInstance |
| 458 | depends_on: [cfg01_node] |
| 459 | properties: |
| 460 | env_name: { get_param: env_name } |
| 461 | mcp_version: { get_param: mcp_version } |
| 462 | instance_domain: {get_param: instance_domain} |
| 463 | instance01_name: rgw01 |
| 464 | instance02_name: rgw02 |
| 465 | instance03_name: rgw03 |
| 466 | instance_flavor: {get_param: rgw_flavor} |
| 467 | network: { get_attr: [networks, network] } |
| 468 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 469 | instance01_control_net_static_ip: |
| 470 | list_join: |
| 471 | - '.' |
| 472 | - [ { get_attr: [networks, control_net_prefix] }, '76' ] |
| 473 | instance02_control_net_static_ip: |
| 474 | list_join: |
| 475 | - '.' |
| 476 | - [ { get_attr: [networks, control_net_prefix] }, '77' ] |
| 477 | instance03_control_net_static_ip: |
| 478 | list_join: |
| 479 | - '.' |
| 480 | - [ { get_attr: [networks, control_net_prefix] }, '78' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 481 | instance01_tenant_net_static_ip: |
| 482 | list_join: |
| 483 | - '.' |
| 484 | - [ { get_attr: [networks, tenant_net_prefix] }, '76' ] |
| 485 | instance02_tenant_net_static_ip: |
| 486 | list_join: |
| 487 | - '.' |
| 488 | - [ { get_attr: [networks, tenant_net_prefix] }, '77' ] |
| 489 | instance03_tenant_net_static_ip: |
| 490 | list_join: |
| 491 | - '.' |
| 492 | - [ { get_attr: [networks, tenant_net_prefix] }, '78' ] |
| 493 | instance01_external_net_static_ip: |
| 494 | list_join: |
| 495 | - '.' |
| 496 | - [ { get_attr: [networks, external_net_prefix] }, '76' ] |
| 497 | instance02_external_net_static_ip: |
| 498 | list_join: |
| 499 | - '.' |
| 500 | - [ { get_attr: [networks, external_net_prefix] }, '77' ] |
| 501 | instance03_external_net_static_ip: |
| 502 | list_join: |
| 503 | - '.' |
| 504 | - [ { get_attr: [networks, external_net_prefix] }, '78' ] |
| 505 | |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 506 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 507 | |
| 508 | ceph_osd_cluster: |
| 509 | type: MCP::MultipleInstance |
| 510 | depends_on: [cfg01_node] |
| 511 | properties: |
| 512 | env_name: { get_param: env_name } |
| 513 | mcp_version: { get_param: mcp_version } |
| 514 | instance_domain: {get_param: instance_domain} |
| 515 | instance01_name: osd001 |
| 516 | instance02_name: osd002 |
| 517 | instance03_name: osd003 |
| 518 | instance_flavor: {get_param: osd_flavor} |
| 519 | network: { get_attr: [networks, network] } |
| 520 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 521 | instance01_control_net_static_ip: |
| 522 | list_join: |
| 523 | - '.' |
| 524 | - [ { get_attr: [networks, control_net_prefix] }, '201' ] |
| 525 | instance02_control_net_static_ip: |
| 526 | list_join: |
| 527 | - '.' |
| 528 | - [ { get_attr: [networks, control_net_prefix] }, '202' ] |
| 529 | instance03_control_net_static_ip: |
| 530 | list_join: |
| 531 | - '.' |
| 532 | - [ { get_attr: [networks, control_net_prefix] }, '203' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 533 | instance01_tenant_net_static_ip: |
| 534 | list_join: |
| 535 | - '.' |
| 536 | - [ { get_attr: [networks, tenant_net_prefix] }, '201' ] |
| 537 | instance02_tenant_net_static_ip: |
| 538 | list_join: |
| 539 | - '.' |
| 540 | - [ { get_attr: [networks, tenant_net_prefix] }, '202' ] |
| 541 | instance03_tenant_net_static_ip: |
| 542 | list_join: |
| 543 | - '.' |
| 544 | - [ { get_attr: [networks, tenant_net_prefix] }, '203' ] |
| 545 | instance01_external_net_static_ip: |
| 546 | list_join: |
| 547 | - '.' |
| 548 | - [ { get_attr: [networks, external_net_prefix] }, '201' ] |
| 549 | instance02_external_net_static_ip: |
| 550 | list_join: |
| 551 | - '.' |
| 552 | - [ { get_attr: [networks, external_net_prefix] }, '202' ] |
| 553 | instance03_external_net_static_ip: |
| 554 | list_join: |
| 555 | - '.' |
| 556 | - [ { get_attr: [networks, external_net_prefix] }, '203' ] |
| 557 | |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 558 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 559 | |
| 560 | prx01_virtual: |
| 561 | type: MCP::SingleInstance |
| 562 | depends_on: [control_cluster] |
| 563 | properties: |
| 564 | env_name: { get_param: env_name } |
| 565 | mcp_version: { get_param: mcp_version } |
| 566 | instance_domain: {get_param: instance_domain} |
| 567 | instance_name: prx01 |
| 568 | instance_flavor: {get_param: cid_flavor} |
| 569 | network: { get_attr: [networks, network] } |
| 570 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 571 | control_net_static_ip: |
| 572 | list_join: |
| 573 | - '.' |
| 574 | - [ { get_attr: [networks, control_net_prefix] }, '221' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 575 | tenant_net_static_ip: |
| 576 | list_join: |
| 577 | - '.' |
| 578 | - [ { get_attr: [networks, tenant_net_prefix] }, '221' ] |
| 579 | external_net_static_ip: |
| 580 | list_join: |
| 581 | - '.' |
| 582 | - [ { get_attr: [networks, external_net_prefix] }, '221' ] |
| 583 | |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 584 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 585 | |
| 586 | prx02_virtual: |
| 587 | type: MCP::SingleInstance |
| 588 | depends_on: [control_cluster] |
| 589 | properties: |
| 590 | env_name: { get_param: env_name } |
| 591 | mcp_version: { get_param: mcp_version } |
| 592 | instance_domain: {get_param: instance_domain} |
| 593 | instance_name: prx02 |
| 594 | instance_flavor: {get_param: cid_flavor} |
| 595 | network: { get_attr: [networks, network] } |
| 596 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 597 | control_net_static_ip: |
| 598 | list_join: |
| 599 | - '.' |
| 600 | - [ { get_attr: [networks, control_net_prefix] }, '222' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 601 | tenant_net_static_ip: |
| 602 | list_join: |
| 603 | - '.' |
| 604 | - [ { get_attr: [networks, tenant_net_prefix] }, '222' ] |
| 605 | external_net_static_ip: |
| 606 | list_join: |
| 607 | - '.' |
| 608 | - [ { get_attr: [networks, external_net_prefix] }, '222' ] |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 609 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 610 | |
| 611 | cmp001_virtual: |
| 612 | type: MCP::Compute |
| 613 | depends_on: [cfg01_node] |
| 614 | properties: |
| 615 | env_name: { get_param: env_name } |
| 616 | mcp_version: { get_param: mcp_version } |
| 617 | instance_domain: {get_param: instance_domain} |
| 618 | instance_name: cmp001 |
| 619 | instance_flavor: {get_param: cmp_flavor} |
| 620 | network: { get_attr: [networks, network] } |
| 621 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 622 | control_net_static_ip: |
| 623 | list_join: |
| 624 | - '.' |
| 625 | - [ { get_attr: [networks, control_net_prefix] }, '101' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 626 | tenant_net_static_ip: |
| 627 | list_join: |
| 628 | - '.' |
| 629 | - [ { get_attr: [networks, tenant_net_prefix] }, '101' ] |
| 630 | external_net_static_ip: |
| 631 | list_join: |
| 632 | - '.' |
| 633 | - [ { get_attr: [networks, external_net_prefix] }, '101' ] |
| 634 | |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 635 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 636 | |
| 637 | cmp002_virtual: |
| 638 | type: MCP::Compute |
| 639 | depends_on: [cfg01_node] |
| 640 | properties: |
| 641 | env_name: { get_param: env_name } |
| 642 | mcp_version: { get_param: mcp_version } |
| 643 | instance_domain: {get_param: instance_domain} |
| 644 | instance_name: cmp002 |
| 645 | instance_flavor: {get_param: cmp_flavor} |
| 646 | network: { get_attr: [networks, network] } |
| 647 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 648 | control_net_static_ip: |
| 649 | list_join: |
| 650 | - '.' |
| 651 | - [ { get_attr: [networks, control_net_prefix] }, '102' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 652 | tenant_net_static_ip: |
| 653 | list_join: |
| 654 | - '.' |
| 655 | - [ { get_attr: [networks, tenant_net_prefix] }, '102' ] |
| 656 | external_net_static_ip: |
| 657 | list_join: |
| 658 | - '.' |
| 659 | - [ { get_attr: [networks, external_net_prefix] }, '102' ] |
| 660 | |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 661 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 662 | |
| 663 | foundation_node: |
| 664 | type: MCP::FoundationNode |
| 665 | depends_on: [networks] |
| 666 | properties: |
| 667 | env_name: { get_param: env_name } |
| 668 | mcp_version: { get_param: mcp_version } |
| 669 | instance_domain: {get_param: instance_domain} |
| 670 | instance_name: foundation |
Dennis Dmitriev | cba8612 | 2019-05-24 13:41:46 +0300 | [diff] [blame] | 671 | instance_image: { get_param: foundation_image } |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 672 | instance_flavor: {get_param: foundation_flavor} |
| 673 | network: { get_attr: [networks, network] } |
| 674 | underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml } |
| 675 | control_net_static_ip: |
| 676 | list_join: |
| 677 | - '.' |
| 678 | - [ { get_attr: [networks, control_net_prefix] }, '5' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 679 | tenant_net_static_ip: |
| 680 | list_join: |
| 681 | - '.' |
| 682 | - [ { get_attr: [networks, tenant_net_prefix] }, '5' ] |
| 683 | external_net_static_ip: |
| 684 | list_join: |
| 685 | - '.' |
| 686 | - [ { get_attr: [networks, external_net_prefix] }, '5' ] |
| 687 | |
sgudz | e844272 | 2019-05-08 10:38:04 +0300 | [diff] [blame] | 688 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 689 | |
| 690 | outputs: |
| 691 | |
| 692 | control_subnet_cidr: |
| 693 | description: Control network CIDR |
| 694 | value: { get_param: control_subnet_cidr } |
| 695 | |
| 696 | management_subnet_cidr: |
| 697 | description: Admin network CIDR |
| 698 | value: { get_param: management_subnet_cidr } |
| 699 | |
| 700 | foundation_floating: |
| 701 | description: foundation node IP address (floating) from external network |
| 702 | value: |
| 703 | get_attr: |
| 704 | - foundation_node |
| 705 | - instance_floating_address |
| 706 | ... |