Dennis Dmitriev | b3b3749 | 2018-07-08 21:23:00 +0300 | [diff] [blame] | 1 | # Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required |
| 2 | {% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'testing') %} |
| 3 | |
| 4 | {% import 'cookied-cicd-pike-dpdk/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %} |
Dennis Dmitriev | b3b3749 | 2018-07-08 21:23:00 +0300 | [diff] [blame] | 5 | {% import 'cookied-cicd-pike-dpdk/underlay--user-data1604-swp.yaml' as CLOUDINIT_USER_DATA_1604_SWP with context %} |
| 6 | |
| 7 | --- |
| 8 | aliases: |
| 9 | - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }} |
| 10 | - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }} |
Dennis Dmitriev | b3b3749 | 2018-07-08 21:23:00 +0300 | [diff] [blame] | 11 | - &cloudinit_user_data_1604_swp {{ CLOUDINIT_USER_DATA_1604_SWP }} |
| 12 | |
| 13 | {% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'cookied-cicd-pike-dpdk') %} |
| 14 | {% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %} |
| 15 | {% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %} |
| 16 | {% set HOSTNAME_KVM01 = os_env('HOSTNAME_KVM01', 'kvm01.' + DOMAIN_NAME) %} |
| 17 | {% set HOSTNAME_KVM02 = os_env('HOSTNAME_KVM02', 'kvm02.' + DOMAIN_NAME) %} |
| 18 | {% set HOSTNAME_KVM03 = os_env('HOSTNAME_KVM03', 'kvm03.' + DOMAIN_NAME) %} |
| 19 | {% set HOSTNAME_CID01 = os_env('HOSTNAME_CID01', 'cid01.' + DOMAIN_NAME) %} |
| 20 | {% set HOSTNAME_CID02 = os_env('HOSTNAME_CID02', 'cid02.' + DOMAIN_NAME) %} |
| 21 | {% set HOSTNAME_CID03 = os_env('HOSTNAME_CID03', 'cid03.' + DOMAIN_NAME) %} |
| 22 | {% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %} |
| 23 | {% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %} |
| 24 | {% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %} |
| 25 | {% set HOSTNAME_DBS = os_env('HOSTNAME_DBS', 'dbs.' + DOMAIN_NAME) %} |
| 26 | {% set HOSTNAME_DBS01 = os_env('HOSTNAME_DBS01', 'dbs01.' + DOMAIN_NAME) %} |
| 27 | {% set HOSTNAME_DBS02 = os_env('HOSTNAME_DBS02', 'dbs02.' + DOMAIN_NAME) %} |
| 28 | {% set HOSTNAME_DBS03 = os_env('HOSTNAME_DBS03', 'dbs03.' + DOMAIN_NAME) %} |
| 29 | {% set HOSTNAME_MSG = os_env('HOSTNAME_MSG', 'msg.' + DOMAIN_NAME) %} |
| 30 | {% set HOSTNAME_MSG01 = os_env('HOSTNAME_MSG01', 'msg01.' + DOMAIN_NAME) %} |
| 31 | {% set HOSTNAME_MSG02 = os_env('HOSTNAME_MSG02', 'msg02.' + DOMAIN_NAME) %} |
| 32 | {% set HOSTNAME_MSG03 = os_env('HOSTNAME_MSG03', 'msg03.' + DOMAIN_NAME) %} |
| 33 | {% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp001.' + DOMAIN_NAME) %} |
| 34 | {% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp002.' + DOMAIN_NAME) %} |
| 35 | {% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %} |
| 36 | {% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %} |
| 37 | |
| 38 | template: |
| 39 | devops_settings: |
| 40 | env_name: {{ os_env('ENV_NAME', 'cookied-cicd-pike-dpdk_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }} |
| 41 | |
| 42 | address_pools: |
| 43 | private-pool01: |
| 44 | net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }} |
| 45 | params: |
| 46 | ip_reserved: |
| 47 | gateway: +1 |
| 48 | l2_network_device: +1 |
| 49 | default_{{ HOSTNAME_CFG01 }}: +15 |
| 50 | default_{{ HOSTNAME_KVM }}: +240 |
| 51 | default_{{ HOSTNAME_KVM01 }}: +241 |
| 52 | default_{{ HOSTNAME_KVM02 }}: +242 |
| 53 | default_{{ HOSTNAME_KVM03 }}: +243 |
| 54 | default_{{ HOSTNAME_CID }}: +90 |
| 55 | default_{{ HOSTNAME_CID01 }}: +91 |
| 56 | default_{{ HOSTNAME_CID02 }}: +92 |
| 57 | default_{{ HOSTNAME_CID03 }}: +93 |
| 58 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 59 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 60 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 61 | default_{{ HOSTNAME_DBS }}: +50 |
| 62 | default_{{ HOSTNAME_DBS01 }}: +51 |
| 63 | default_{{ HOSTNAME_DBS02 }}: +52 |
| 64 | default_{{ HOSTNAME_DBS03 }}: +53 |
| 65 | default_{{ HOSTNAME_MSG }}: +40 |
| 66 | default_{{ HOSTNAME_MSG01 }}: +41 |
| 67 | default_{{ HOSTNAME_MSG02 }}: +42 |
| 68 | default_{{ HOSTNAME_MSG03 }}: +43 |
| 69 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 70 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 71 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 72 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 73 | ip_ranges: |
| 74 | dhcp: [+90, -10] |
| 75 | |
| 76 | admin-pool01: |
| 77 | net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }} |
| 78 | params: |
| 79 | ip_reserved: |
| 80 | gateway: +1 |
| 81 | l2_network_device: +1 |
| 82 | default_{{ HOSTNAME_CFG01 }}: +15 |
| 83 | default_{{ HOSTNAME_KVM }}: +240 |
| 84 | default_{{ HOSTNAME_KVM01 }}: +241 |
| 85 | default_{{ HOSTNAME_KVM02 }}: +242 |
| 86 | default_{{ HOSTNAME_KVM03 }}: +243 |
| 87 | default_{{ HOSTNAME_CID }}: +90 |
| 88 | default_{{ HOSTNAME_CID01 }}: +91 |
| 89 | default_{{ HOSTNAME_CID02 }}: +92 |
| 90 | default_{{ HOSTNAME_CID03 }}: +93 |
| 91 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 92 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 93 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 94 | default_{{ HOSTNAME_DBS }}: +50 |
| 95 | default_{{ HOSTNAME_DBS01 }}: +51 |
| 96 | default_{{ HOSTNAME_DBS02 }}: +52 |
| 97 | default_{{ HOSTNAME_DBS03 }}: +53 |
| 98 | default_{{ HOSTNAME_MSG }}: +40 |
| 99 | default_{{ HOSTNAME_MSG01 }}: +41 |
| 100 | default_{{ HOSTNAME_MSG02 }}: +42 |
| 101 | default_{{ HOSTNAME_MSG03 }}: +43 |
| 102 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 103 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 104 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 105 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 106 | ip_ranges: |
| 107 | dhcp: [+90, -10] |
| 108 | |
| 109 | tenant-pool01: |
| 110 | net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }} |
| 111 | params: |
| 112 | ip_reserved: |
| 113 | gateway: +1 |
| 114 | l2_network_device: +1 |
| 115 | default_{{ HOSTNAME_CFG01 }}: +15 |
| 116 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 117 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 118 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 119 | default_{{ HOSTNAME_DBS }}: +50 |
| 120 | default_{{ HOSTNAME_DBS01 }}: +51 |
| 121 | default_{{ HOSTNAME_DBS02 }}: +52 |
| 122 | default_{{ HOSTNAME_DBS03 }}: +53 |
| 123 | default_{{ HOSTNAME_MSG }}: +40 |
| 124 | default_{{ HOSTNAME_MSG01 }}: +41 |
| 125 | default_{{ HOSTNAME_MSG02 }}: +42 |
| 126 | default_{{ HOSTNAME_MSG03 }}: +43 |
| 127 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 128 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 129 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 130 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 131 | ip_ranges: |
| 132 | dhcp: [+10, -10] |
| 133 | |
| 134 | external-pool01: |
| 135 | net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }} |
| 136 | params: |
| 137 | ip_reserved: |
| 138 | gateway: +1 |
| 139 | l2_network_device: +1 |
| 140 | default_{{ HOSTNAME_CFG01 }}: +15 |
| 141 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 142 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 143 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 144 | default_{{ HOSTNAME_DBS }}: +50 |
| 145 | default_{{ HOSTNAME_DBS01 }}: +51 |
| 146 | default_{{ HOSTNAME_DBS02 }}: +52 |
| 147 | default_{{ HOSTNAME_DBS03 }}: +53 |
| 148 | default_{{ HOSTNAME_MSG }}: +40 |
| 149 | default_{{ HOSTNAME_MSG01 }}: +41 |
| 150 | default_{{ HOSTNAME_MSG02 }}: +42 |
| 151 | default_{{ HOSTNAME_MSG03 }}: +43 |
| 152 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 153 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 154 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 155 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 156 | ip_ranges: |
| 157 | dhcp: [+10, -10] |
| 158 | |
| 159 | |
| 160 | groups: |
| 161 | - name: default |
| 162 | driver: |
| 163 | name: devops.driver.libvirt |
| 164 | params: |
| 165 | connection_string: !os_env CONNECTION_STRING, qemu:///system |
| 166 | storage_pool_name: !os_env STORAGE_POOL_NAME, default |
| 167 | stp: False |
| 168 | hpet: True |
| 169 | use_hugepages: True |
| 170 | enable_acpi: true |
| 171 | use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true |
| 172 | use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false |
| 173 | |
| 174 | network_pools: |
| 175 | admin: admin-pool01 |
| 176 | private: private-pool01 |
| 177 | tenant: tenant-pool01 |
| 178 | external: external-pool01 |
| 179 | |
| 180 | l2_network_devices: |
| 181 | private: |
| 182 | address_pool: private-pool01 |
| 183 | dhcp: false |
| 184 | forward: |
| 185 | mode: route |
| 186 | |
| 187 | admin: |
| 188 | address_pool: admin-pool01 |
| 189 | dhcp: true |
| 190 | forward: |
| 191 | mode: nat |
| 192 | |
| 193 | tenant: |
| 194 | address_pool: tenant-pool01 |
| 195 | dhcp: false |
| 196 | |
| 197 | external: |
| 198 | address_pool: external-pool01 |
| 199 | dhcp: true |
| 200 | forward: |
| 201 | mode: route |
| 202 | |
| 203 | |
| 204 | group_volumes: |
| 205 | - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes. |
| 206 | source_image: {{ os_env('MCP_IMAGE_PATH1604') }} # http://ci.mcp.mirantis.net:8085/images/ubuntu-16-04-x64-mcpproposed.qcow2 |
| 207 | format: qcow2 |
| 208 | |
| 209 | - name: cfg01_day01_image # Pre-configured day01 image |
| 210 | source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01') }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604 |
| 211 | format: qcow2 |
| 212 | |
| 213 | nodes: |
| 214 | - name: {{ HOSTNAME_CFG01 }} |
| 215 | role: salt_master |
| 216 | params: |
| 217 | vcpu: {{ os_env('CFG_NODE_CPU', 3) }} |
| 218 | memory: {{ os_env('CFG_NODE_MEMORY', 8192) }} |
| 219 | boot: |
| 220 | - hd |
Dennis Dmitriev | b3b3749 | 2018-07-08 21:23:00 +0300 | [diff] [blame] | 221 | volumes: |
| 222 | - name: system |
| 223 | capacity: {{ os_env('CFG_NODE_VOLUME_SIZE', 150) }} |
| 224 | backing_store: cfg01_day01_image |
| 225 | format: qcow2 |
| 226 | - name: config |
| 227 | capacity: 1 |
| 228 | format: raw |
| 229 | device: cdrom |
| 230 | bus: ide |
| 231 | # source_image: !os_env CFG01_CONFIG_PATH # no source image required. |
| 232 | # it will be uploaded after config drive generation |
Dennis Dmitriev | b3b3749 | 2018-07-08 21:23:00 +0300 | [diff] [blame] | 233 | interfaces: |
| 234 | - label: ens3 |
| 235 | l2_network_device: admin |
| 236 | interface_model: *interface_model |
| 237 | - label: ens4 |
| 238 | l2_network_device: private |
| 239 | interface_model: *interface_model |
| 240 | network_config: |
| 241 | ens3: |
| 242 | networks: |
| 243 | - admin |
| 244 | ens4: |
| 245 | networks: |
| 246 | - private |
| 247 | |
| 248 | - name: {{ HOSTNAME_CTL01 }} |
| 249 | role: salt_minion |
| 250 | params: |
| 251 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 252 | memory: !os_env SLAVE_NODE_MEMORY, 16384 |
| 253 | boot: |
| 254 | - hd |
| 255 | cloud_init_volume_name: iso |
| 256 | cloud_init_iface_up: ens3 |
| 257 | volumes: |
| 258 | - name: system |
| 259 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 260 | backing_store: cloudimage1604 |
| 261 | format: qcow2 |
| 262 | - name: iso # Volume with name 'iso' will be used |
| 263 | # for store image with cloud-init metadata. |
| 264 | capacity: 1 |
| 265 | format: raw |
| 266 | device: cdrom |
| 267 | bus: ide |
| 268 | cloudinit_meta_data: *cloudinit_meta_data |
| 269 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 270 | |
| 271 | interfaces: &interfaces |
| 272 | - label: ens3 |
| 273 | l2_network_device: admin |
| 274 | interface_model: *interface_model |
| 275 | - label: ens4 |
| 276 | l2_network_device: private |
| 277 | interface_model: *interface_model |
| 278 | network_config: &network_config |
| 279 | ens3: |
| 280 | networks: |
| 281 | - admin |
| 282 | ens4: |
| 283 | networks: |
| 284 | - private |
| 285 | |
| 286 | - name: {{ HOSTNAME_CTL02 }} |
| 287 | role: salt_minion |
| 288 | params: |
| 289 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 290 | memory: !os_env SLAVE_NODE_MEMORY, 16384 |
| 291 | boot: |
| 292 | - hd |
| 293 | cloud_init_volume_name: iso |
| 294 | cloud_init_iface_up: ens3 |
| 295 | volumes: |
| 296 | - name: system |
| 297 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 298 | backing_store: cloudimage1604 |
| 299 | format: qcow2 |
| 300 | - name: iso # Volume with name 'iso' will be used |
| 301 | # for store image with cloud-init metadata. |
| 302 | capacity: 1 |
| 303 | format: raw |
| 304 | device: cdrom |
| 305 | bus: ide |
| 306 | cloudinit_meta_data: *cloudinit_meta_data |
| 307 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 308 | |
| 309 | interfaces: *interfaces |
| 310 | network_config: *network_config |
| 311 | |
| 312 | - name: {{ HOSTNAME_CTL03 }} |
| 313 | role: salt_minion |
| 314 | params: |
| 315 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 316 | memory: !os_env SLAVE_NODE_MEMORY, 16384 |
| 317 | boot: |
| 318 | - hd |
| 319 | cloud_init_volume_name: iso |
| 320 | cloud_init_iface_up: ens3 |
| 321 | volumes: |
| 322 | - name: system |
| 323 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 324 | backing_store: cloudimage1604 |
| 325 | format: qcow2 |
| 326 | - name: iso # Volume with name 'iso' will be used |
| 327 | # for store image with cloud-init metadata. |
| 328 | capacity: 1 |
| 329 | format: raw |
| 330 | device: cdrom |
| 331 | bus: ide |
| 332 | cloudinit_meta_data: *cloudinit_meta_data |
| 333 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 334 | |
| 335 | interfaces: *interfaces |
| 336 | network_config: *network_config |
| 337 | |
| 338 | - name: {{ HOSTNAME_DBS01 }} |
| 339 | role: salt_minion |
| 340 | params: |
| 341 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 342 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 343 | boot: |
| 344 | - hd |
| 345 | cloud_init_volume_name: iso |
| 346 | cloud_init_iface_up: ens3 |
| 347 | volumes: |
| 348 | - name: system |
| 349 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 350 | backing_store: cloudimage1604 |
| 351 | format: qcow2 |
| 352 | - name: iso # Volume with name 'iso' will be used |
| 353 | # for store image with cloud-init metadata. |
| 354 | capacity: 1 |
| 355 | format: raw |
| 356 | device: cdrom |
| 357 | bus: ide |
| 358 | cloudinit_meta_data: *cloudinit_meta_data |
| 359 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 360 | |
| 361 | interfaces: *interfaces |
| 362 | network_config: *network_config |
| 363 | |
| 364 | - name: {{ HOSTNAME_DBS02 }} |
| 365 | role: salt_minion |
| 366 | params: |
| 367 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 368 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 369 | boot: |
| 370 | - hd |
| 371 | cloud_init_volume_name: iso |
| 372 | cloud_init_iface_up: ens3 |
| 373 | volumes: |
| 374 | - name: system |
| 375 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 376 | backing_store: cloudimage1604 |
| 377 | format: qcow2 |
| 378 | - name: iso # Volume with name 'iso' will be used |
| 379 | # for store image with cloud-init metadata. |
| 380 | capacity: 1 |
| 381 | format: raw |
| 382 | device: cdrom |
| 383 | bus: ide |
| 384 | cloudinit_meta_data: *cloudinit_meta_data |
| 385 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 386 | |
| 387 | interfaces: *interfaces |
| 388 | network_config: *network_config |
| 389 | |
| 390 | - name: {{ HOSTNAME_DBS03 }} |
| 391 | role: salt_minion |
| 392 | params: |
| 393 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 394 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 395 | boot: |
| 396 | - hd |
| 397 | cloud_init_volume_name: iso |
| 398 | cloud_init_iface_up: ens3 |
| 399 | volumes: |
| 400 | - name: system |
| 401 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 402 | backing_store: cloudimage1604 |
| 403 | format: qcow2 |
| 404 | - name: iso # Volume with name 'iso' will be used |
| 405 | # for store image with cloud-init metadata. |
| 406 | capacity: 1 |
| 407 | format: raw |
| 408 | device: cdrom |
| 409 | bus: ide |
| 410 | cloudinit_meta_data: *cloudinit_meta_data |
| 411 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 412 | |
| 413 | interfaces: *interfaces |
| 414 | network_config: *network_config |
| 415 | |
| 416 | - name: {{ HOSTNAME_MSG01 }} |
| 417 | role: salt_minion |
| 418 | params: |
| 419 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 420 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 421 | boot: |
| 422 | - hd |
| 423 | cloud_init_volume_name: iso |
| 424 | cloud_init_iface_up: ens3 |
| 425 | volumes: |
| 426 | - name: system |
| 427 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 428 | backing_store: cloudimage1604 |
| 429 | format: qcow2 |
| 430 | - name: iso # Volume with name 'iso' will be used |
| 431 | # for store image with cloud-init metadata. |
| 432 | capacity: 1 |
| 433 | format: raw |
| 434 | device: cdrom |
| 435 | bus: ide |
| 436 | cloudinit_meta_data: *cloudinit_meta_data |
| 437 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 438 | |
| 439 | interfaces: *interfaces |
| 440 | network_config: *network_config |
| 441 | |
| 442 | - name: {{ HOSTNAME_MSG02 }} |
| 443 | role: salt_minion |
| 444 | params: |
| 445 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 446 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 447 | boot: |
| 448 | - hd |
| 449 | cloud_init_volume_name: iso |
| 450 | cloud_init_iface_up: ens3 |
| 451 | volumes: |
| 452 | - name: system |
| 453 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 454 | backing_store: cloudimage1604 |
| 455 | format: qcow2 |
| 456 | - name: iso # Volume with name 'iso' will be used |
| 457 | # for store image with cloud-init metadata. |
| 458 | capacity: 1 |
| 459 | format: raw |
| 460 | device: cdrom |
| 461 | bus: ide |
| 462 | cloudinit_meta_data: *cloudinit_meta_data |
| 463 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 464 | |
| 465 | interfaces: *interfaces |
| 466 | network_config: *network_config |
| 467 | |
| 468 | - name: {{ HOSTNAME_MSG03 }} |
| 469 | role: salt_minion |
| 470 | params: |
| 471 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 472 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 473 | boot: |
| 474 | - hd |
| 475 | cloud_init_volume_name: iso |
| 476 | cloud_init_iface_up: ens3 |
| 477 | volumes: |
| 478 | - name: system |
| 479 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 480 | backing_store: cloudimage1604 |
| 481 | format: qcow2 |
| 482 | - name: iso # Volume with name 'iso' will be used |
| 483 | # for store image with cloud-init metadata. |
| 484 | capacity: 1 |
| 485 | format: raw |
| 486 | device: cdrom |
| 487 | bus: ide |
| 488 | cloudinit_meta_data: *cloudinit_meta_data |
| 489 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 490 | |
| 491 | interfaces: *interfaces |
| 492 | network_config: *network_config |
| 493 | |
| 494 | - name: {{ HOSTNAME_PRX01 }} |
| 495 | role: salt_minion |
| 496 | params: |
| 497 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
| 498 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 499 | boot: |
| 500 | - hd |
| 501 | cloud_init_volume_name: iso |
| 502 | cloud_init_iface_up: ens3 |
| 503 | volumes: |
| 504 | - name: system |
| 505 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 506 | backing_store: cloudimage1604 |
| 507 | format: qcow2 |
Dennis Dmitriev | b3b3749 | 2018-07-08 21:23:00 +0300 | [diff] [blame] | 508 | - name: iso # Volume with name 'iso' will be used |
| 509 | # for store image with cloud-init metadata. |
| 510 | capacity: 1 |
| 511 | format: raw |
| 512 | device: cdrom |
| 513 | bus: ide |
| 514 | cloudinit_meta_data: *cloudinit_meta_data |
| 515 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 516 | |
Dennis Dmitriev | 1ddf647 | 2018-11-25 22:30:12 +0200 | [diff] [blame] | 517 | interfaces: |
| 518 | - label: ens3 |
| 519 | l2_network_device: admin |
| 520 | interface_model: *interface_model |
| 521 | - label: ens4 |
| 522 | l2_network_device: private |
| 523 | interface_model: *interface_model |
| 524 | - label: ens5 |
| 525 | l2_network_device: external |
| 526 | interface_model: *interface_model |
| 527 | network_config: |
| 528 | ens3: |
| 529 | networks: |
| 530 | - admin |
| 531 | ens4: |
| 532 | networks: |
| 533 | - private |
| 534 | ens5: |
| 535 | networks: |
| 536 | - external |
Dennis Dmitriev | b3b3749 | 2018-07-08 21:23:00 +0300 | [diff] [blame] | 537 | |
| 538 | - name: {{ HOSTNAME_CMP01 }} |
| 539 | role: salt_minion |
| 540 | params: |
| 541 | vcpu: !os_env SLAVE_NODE_CPU, 12 |
| 542 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 543 | numa: |
| 544 | - cpus: 0,1,2,3,4,5 |
| 545 | memory: 4096 |
| 546 | - cpus: 6,7,8,9,10,11 |
| 547 | memory: 4096 |
| 548 | boot: |
| 549 | - hd |
| 550 | cloud_init_volume_name: iso |
| 551 | cloud_init_iface_up: ens3 |
| 552 | volumes: |
| 553 | - name: system |
| 554 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 555 | backing_store: cloudimage1604 |
| 556 | format: qcow2 |
| 557 | - name: cinder |
| 558 | capacity: 50 |
| 559 | format: qcow2 |
| 560 | - name: iso # Volume with name 'iso' will be used |
| 561 | # for store image with cloud-init metadata. |
| 562 | capacity: 1 |
| 563 | format: raw |
| 564 | device: cdrom |
| 565 | bus: ide |
| 566 | cloudinit_meta_data: *cloudinit_meta_data |
| 567 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 568 | |
| 569 | |
| 570 | interfaces: &all_interfaces |
| 571 | - label: ens3 |
| 572 | l2_network_device: admin |
| 573 | interface_model: *interface_model |
| 574 | - label: ens4 |
| 575 | l2_network_device: private |
| 576 | interface_model: *interface_model |
| 577 | - label: ens5 |
| 578 | l2_network_device: tenant |
| 579 | interface_model: e1000 |
| 580 | - label: ens6 |
| 581 | l2_network_device: tenant |
| 582 | interface_model: e1000 |
| 583 | - label: ens7 |
| 584 | l2_network_device: external |
| 585 | interface_model: *interface_model |
| 586 | network_config: &all_network_config |
| 587 | ens3: |
| 588 | networks: |
| 589 | - admin |
| 590 | ens4: |
| 591 | networks: |
| 592 | - private |
| 593 | ens5: |
| 594 | networks: |
| 595 | - tenant |
| 596 | ens6: |
| 597 | networks: |
| 598 | - tenant |
| 599 | ens7: |
| 600 | networks: |
| 601 | - external |
| 602 | |
| 603 | - name: {{ HOSTNAME_CMP02 }} |
| 604 | role: salt_minion |
| 605 | params: |
| 606 | vcpu: !os_env SLAVE_NODE_CPU, 12 |
| 607 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 608 | numa: |
| 609 | - cpus: 0,1,2,3,4,5 |
| 610 | memory: 4096 |
| 611 | - cpus: 6,7,8,9,10,11 |
| 612 | memory: 4096 |
| 613 | boot: |
| 614 | - hd |
| 615 | cloud_init_volume_name: iso |
| 616 | cloud_init_iface_up: ens3 |
| 617 | volumes: |
| 618 | - name: system |
| 619 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 620 | backing_store: cloudimage1604 |
| 621 | format: qcow2 |
| 622 | - name: cinder |
| 623 | capacity: 50 |
| 624 | format: qcow2 |
| 625 | - name: iso # Volume with name 'iso' will be used |
| 626 | # for store image with cloud-init metadata. |
| 627 | capacity: 1 |
| 628 | format: raw |
| 629 | device: cdrom |
| 630 | bus: ide |
| 631 | cloudinit_meta_data: *cloudinit_meta_data |
| 632 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 633 | |
| 634 | interfaces: *all_interfaces |
| 635 | network_config: *all_network_config |
| 636 | |
| 637 | - name: {{ HOSTNAME_GTW01 }} |
| 638 | role: salt_minion |
| 639 | params: |
| 640 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 641 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 642 | boot: |
| 643 | - hd |
| 644 | cloud_init_volume_name: iso |
| 645 | cloud_init_iface_up: ens3 |
| 646 | volumes: |
| 647 | - name: system |
| 648 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 649 | backing_store: cloudimage1604 |
| 650 | format: qcow2 |
| 651 | - name: iso # Volume with name 'iso' will be used |
| 652 | # for store image with cloud-init metadata. |
| 653 | capacity: 1 |
| 654 | format: raw |
| 655 | device: cdrom |
| 656 | bus: ide |
| 657 | cloudinit_meta_data: *cloudinit_meta_data |
| 658 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 659 | |
| 660 | interfaces: *all_interfaces |
| 661 | network_config: *all_network_config |
| 662 | |
| 663 | - name: {{ HOSTNAME_KVM01 }} |
| 664 | role: salt_minion |
| 665 | params: |
| 666 | vcpu: {{ os_env('KVM_NODE_CPU', 1) }} |
| 667 | memory: {{ os_env('KVM_NODE_MEMORY', 1024) }} |
| 668 | boot: |
| 669 | - hd |
| 670 | cloud_init_volume_name: iso |
| 671 | cloud_init_iface_up: ens3 |
| 672 | volumes: |
| 673 | - name: system |
| 674 | capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }} |
Dennis Dmitriev | a6d717b | 2018-07-27 14:46:02 +0300 | [diff] [blame] | 675 | backing_store: cloudimage1604 |
Dennis Dmitriev | b3b3749 | 2018-07-08 21:23:00 +0300 | [diff] [blame] | 676 | format: qcow2 |
| 677 | - name: iso # Volume with name 'iso' will be used |
| 678 | # for store image with cloud-init metadata. |
| 679 | capacity: 1 |
| 680 | format: raw |
| 681 | device: cdrom |
| 682 | bus: ide |
| 683 | cloudinit_meta_data: *cloudinit_meta_data |
| 684 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 685 | |
| 686 | interfaces: *interfaces |
| 687 | network_config: *network_config |
| 688 | |
| 689 | - name: {{ HOSTNAME_KVM02 }} |
| 690 | role: salt_minion |
| 691 | params: |
| 692 | vcpu: {{ os_env('KVM_NODE_CPU', 1) }} |
| 693 | memory: {{ os_env('KVM_NODE_MEMORY', 1024) }} |
| 694 | boot: |
| 695 | - hd |
| 696 | cloud_init_volume_name: iso |
| 697 | cloud_init_iface_up: ens3 |
| 698 | volumes: |
| 699 | - name: system |
| 700 | capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }} |
Dennis Dmitriev | a6d717b | 2018-07-27 14:46:02 +0300 | [diff] [blame] | 701 | backing_store: cloudimage1604 |
Dennis Dmitriev | b3b3749 | 2018-07-08 21:23:00 +0300 | [diff] [blame] | 702 | format: qcow2 |
| 703 | - name: iso # Volume with name 'iso' will be used |
| 704 | # for store image with cloud-init metadata. |
| 705 | capacity: 1 |
| 706 | format: raw |
| 707 | device: cdrom |
| 708 | bus: ide |
| 709 | cloudinit_meta_data: *cloudinit_meta_data |
| 710 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 711 | |
| 712 | interfaces: *interfaces |
| 713 | network_config: *network_config |
| 714 | |
| 715 | - name: {{ HOSTNAME_KVM03 }} |
| 716 | role: salt_minion |
| 717 | params: |
| 718 | vcpu: {{ os_env('KVM_NODE_CPU', 1) }} |
| 719 | memory: {{ os_env('KVM_NODE_MEMORY', 1024) }} |
| 720 | boot: |
| 721 | - hd |
| 722 | cloud_init_volume_name: iso |
| 723 | cloud_init_iface_up: ens3 |
| 724 | volumes: |
| 725 | - name: system |
| 726 | capacity: {{ os_env('KVM_NODE_VOLUME_SIZE', 150) }} |
Dennis Dmitriev | a6d717b | 2018-07-27 14:46:02 +0300 | [diff] [blame] | 727 | backing_store: cloudimage1604 |
Dennis Dmitriev | b3b3749 | 2018-07-08 21:23:00 +0300 | [diff] [blame] | 728 | format: qcow2 |
| 729 | - name: iso # Volume with name 'iso' will be used |
| 730 | # for store image with cloud-init metadata. |
| 731 | capacity: 1 |
| 732 | format: raw |
| 733 | device: cdrom |
| 734 | bus: ide |
| 735 | cloudinit_meta_data: *cloudinit_meta_data |
| 736 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 737 | |
| 738 | interfaces: *interfaces |
| 739 | network_config: *network_config |
| 740 | |
| 741 | - name: {{ HOSTNAME_CID01 }} |
| 742 | role: salt_minion |
| 743 | params: |
| 744 | vcpu: {{ os_env('CID_NODE_CPU', 3) }} |
| 745 | memory: {{ os_env('CID_NODE_MEMORY', 8192) }} |
| 746 | boot: |
| 747 | - hd |
| 748 | cloud_init_volume_name: iso |
| 749 | cloud_init_iface_up: ens3 |
| 750 | volumes: |
| 751 | - name: system |
| 752 | capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }} |
Dennis Dmitriev | a6d717b | 2018-07-27 14:46:02 +0300 | [diff] [blame] | 753 | backing_store: cloudimage1604 |
Dennis Dmitriev | b3b3749 | 2018-07-08 21:23:00 +0300 | [diff] [blame] | 754 | format: qcow2 |
| 755 | - name: iso # Volume with name 'iso' will be used |
| 756 | # for store image with cloud-init metadata. |
| 757 | capacity: 1 |
| 758 | format: raw |
| 759 | device: cdrom |
| 760 | bus: ide |
| 761 | cloudinit_meta_data: *cloudinit_meta_data |
| 762 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 763 | |
| 764 | interfaces: *interfaces |
| 765 | network_config: *network_config |
| 766 | |
| 767 | - name: {{ HOSTNAME_CID02 }} |
| 768 | role: salt_minion |
| 769 | params: |
| 770 | vcpu: {{ os_env('CID_NODE_CPU', 3) }} |
| 771 | memory: {{ os_env('CID_NODE_MEMORY', 8192) }} |
| 772 | boot: |
| 773 | - hd |
| 774 | cloud_init_volume_name: iso |
| 775 | cloud_init_iface_up: ens3 |
| 776 | volumes: |
| 777 | - name: system |
| 778 | capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }} |
Dennis Dmitriev | a6d717b | 2018-07-27 14:46:02 +0300 | [diff] [blame] | 779 | backing_store: cloudimage1604 |
Dennis Dmitriev | b3b3749 | 2018-07-08 21:23:00 +0300 | [diff] [blame] | 780 | format: qcow2 |
| 781 | - name: iso # Volume with name 'iso' will be used |
| 782 | # for store image with cloud-init metadata. |
| 783 | capacity: 1 |
| 784 | format: raw |
| 785 | device: cdrom |
| 786 | bus: ide |
| 787 | cloudinit_meta_data: *cloudinit_meta_data |
| 788 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 789 | |
| 790 | interfaces: *interfaces |
| 791 | network_config: *network_config |
| 792 | |
| 793 | - name: {{ HOSTNAME_CID03 }} |
| 794 | role: salt_minion |
| 795 | params: |
| 796 | vcpu: {{ os_env('CID_NODE_CPU', 3) }} |
| 797 | memory: {{ os_env('CID_NODE_MEMORY', 8192) }} |
| 798 | boot: |
| 799 | - hd |
| 800 | cloud_init_volume_name: iso |
| 801 | cloud_init_iface_up: ens3 |
| 802 | volumes: |
| 803 | - name: system |
| 804 | capacity: {{ os_env('CID_NODE_VOLUME_SIZE', 150) }} |
Dennis Dmitriev | a6d717b | 2018-07-27 14:46:02 +0300 | [diff] [blame] | 805 | backing_store: cloudimage1604 |
Dennis Dmitriev | b3b3749 | 2018-07-08 21:23:00 +0300 | [diff] [blame] | 806 | format: qcow2 |
| 807 | - name: iso # Volume with name 'iso' will be used |
| 808 | # for store image with cloud-init metadata. |
| 809 | capacity: 1 |
| 810 | format: raw |
| 811 | device: cdrom |
| 812 | bus: ide |
| 813 | cloudinit_meta_data: *cloudinit_meta_data |
| 814 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 815 | |
| 816 | interfaces: *interfaces |
| 817 | network_config: *network_config |