Dennis Dmitriev | eac3aab | 2017-07-12 16:36:41 +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 'virtual-mcp-ocata-cicd/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %} |
| 5 | {% import 'virtual-mcp-ocata-cicd/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %} |
| 6 | {% import 'virtual-mcp-ocata-cicd/underlay--user-data-cicd.yaml' as CLOUDINIT_USER_DATA_CICD with context %} |
| 7 | {% import 'virtual-mcp-ocata-cicd/underlay--user-data-openstack.yaml' as CLOUDINIT_USER_DATA_OPENSTACK with context %} |
| 8 | |
| 9 | --- |
| 10 | aliases: |
| 11 | - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }} |
| 12 | - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }} |
| 13 | - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }} |
| 14 | - &cloudinit_user_data_cicd {{ CLOUDINIT_USER_DATA_CICD }} |
| 15 | - &cloudinit_user_data_openstack {{ CLOUDINIT_USER_DATA_OPENSTACK }} |
| 16 | |
| 17 | {% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp-ocata-cicd') + '.local' %} |
| 18 | {% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + 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_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %} |
| 26 | {% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %} |
| 27 | {% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %} |
| 28 | {% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %} |
| 29 | |
| 30 | template: |
| 31 | devops_settings: |
| 32 | env_name: {{ os_env('ENV_NAME', 'virtual-mcp-ocata-cicd_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }} |
| 33 | |
| 34 | address_pools: |
| 35 | private-pool01: |
| 36 | net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }} |
| 37 | params: |
| 38 | ip_reserved: |
| 39 | gateway: +1 |
| 40 | l2_network_device: +1 |
| 41 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 42 | default_{{ HOSTNAME_CID01 }}: +91 |
| 43 | default_{{ HOSTNAME_CID02 }}: +92 |
| 44 | default_{{ HOSTNAME_CID03 }}: +93 |
| 45 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 46 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 47 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 48 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 49 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 50 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 51 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 52 | ip_ranges: |
| 53 | dhcp: [+90, -10] |
| 54 | |
| 55 | admin-pool01: |
| 56 | net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }} |
| 57 | params: |
| 58 | ip_reserved: |
| 59 | gateway: +1 |
| 60 | l2_network_device: +1 |
| 61 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 62 | default_{{ HOSTNAME_CID01 }}: +91 |
| 63 | default_{{ HOSTNAME_CID02 }}: +92 |
| 64 | default_{{ HOSTNAME_CID03 }}: +93 |
| 65 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 66 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 67 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 68 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 69 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 70 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 71 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 72 | ip_ranges: |
| 73 | dhcp: [+90, -10] |
| 74 | |
| 75 | tenant-pool01: |
| 76 | net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }} |
| 77 | params: |
| 78 | ip_reserved: |
| 79 | gateway: +1 |
| 80 | l2_network_device: +1 |
| 81 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 82 | default_{{ HOSTNAME_CID01 }}: +91 |
| 83 | default_{{ HOSTNAME_CID02 }}: +92 |
| 84 | default_{{ HOSTNAME_CID03 }}: +93 |
| 85 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 86 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 87 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 88 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 89 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 90 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 91 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 92 | ip_ranges: |
| 93 | dhcp: [+10, -10] |
| 94 | |
| 95 | external-pool01: |
| 96 | net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }} |
| 97 | params: |
| 98 | ip_reserved: |
| 99 | gateway: +1 |
| 100 | l2_network_device: +1 |
| 101 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 102 | default_{{ HOSTNAME_CID01 }}: +91 |
| 103 | default_{{ HOSTNAME_CID02 }}: +92 |
| 104 | default_{{ HOSTNAME_CID03 }}: +93 |
| 105 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 106 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 107 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 108 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 109 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 110 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 111 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 112 | ip_ranges: |
| 113 | dhcp: [+10, -10] |
| 114 | |
| 115 | |
| 116 | groups: |
| 117 | - name: default |
| 118 | driver: |
| 119 | name: devops.driver.libvirt |
| 120 | params: |
| 121 | connection_string: !os_env CONNECTION_STRING, qemu:///system |
| 122 | storage_pool_name: !os_env STORAGE_POOL_NAME, default |
| 123 | stp: False |
| 124 | hpet: False |
| 125 | enable_acpi: true |
| 126 | use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true |
Dennis Dmitriev | b3fc424 | 2017-07-14 16:01:51 +0300 | [diff] [blame] | 127 | use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false |
Dennis Dmitriev | eac3aab | 2017-07-12 16:36:41 +0300 | [diff] [blame] | 128 | |
| 129 | network_pools: |
| 130 | admin: admin-pool01 |
| 131 | private: private-pool01 |
| 132 | tenant: tenant-pool01 |
| 133 | external: external-pool01 |
| 134 | |
| 135 | l2_network_devices: |
| 136 | admin: |
| 137 | address_pool: admin-pool01 |
| 138 | dhcp: true |
| 139 | forward: |
| 140 | mode: nat |
| 141 | |
| 142 | private: |
| 143 | address_pool: private-pool01 |
| 144 | dhcp: dhcp |
| 145 | |
| 146 | tenant: |
| 147 | address_pool: tenant-pool01 |
| 148 | dhcp: false |
| 149 | |
| 150 | external: |
| 151 | address_pool: external-pool01 |
| 152 | dhcp: true |
| 153 | forward: |
| 154 | mode: nat |
| 155 | |
| 156 | |
| 157 | group_volumes: |
| 158 | - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes. |
| 159 | source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or |
| 160 | # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2 |
| 161 | format: qcow2 |
| 162 | |
| 163 | nodes: |
| 164 | - name: {{ HOSTNAME_CFG01 }} |
| 165 | role: salt_master |
| 166 | params: |
Dennis Dmitriev | ea7ee49 | 2017-07-14 20:16:07 +0300 | [diff] [blame^] | 167 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 168 | memory: !os_env SLAVE_NODE_MEMORY, 2096 |
Dennis Dmitriev | eac3aab | 2017-07-12 16:36:41 +0300 | [diff] [blame] | 169 | boot: |
| 170 | - hd |
| 171 | cloud_init_volume_name: iso |
| 172 | cloud_init_iface_up: ens3 |
| 173 | volumes: |
| 174 | - name: system |
| 175 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 176 | backing_store: cloudimage1604 |
| 177 | format: qcow2 |
| 178 | - name: iso # Volume with name 'iso' will be used |
| 179 | # for store image with cloud-init metadata. |
| 180 | capacity: 1 |
| 181 | format: raw |
| 182 | device: cdrom |
| 183 | bus: ide |
| 184 | cloudinit_meta_data: *cloudinit_meta_data |
| 185 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
| 186 | |
| 187 | interfaces: |
| 188 | - label: ens3 |
| 189 | l2_network_device: admin |
| 190 | interface_model: *interface_model |
| 191 | - label: ens4 |
| 192 | l2_network_device: private |
| 193 | interface_model: *interface_model |
| 194 | network_config: |
| 195 | ens3: |
| 196 | networks: |
| 197 | - admin |
| 198 | ens4: |
| 199 | networks: |
| 200 | - private |
| 201 | |
| 202 | - name: {{ HOSTNAME_CID01 }} |
| 203 | role: salt_minion |
| 204 | params: |
Dennis Dmitriev | ea7ee49 | 2017-07-14 20:16:07 +0300 | [diff] [blame^] | 205 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 206 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
Dennis Dmitriev | eac3aab | 2017-07-12 16:36:41 +0300 | [diff] [blame] | 207 | boot: |
| 208 | - hd |
| 209 | cloud_init_volume_name: iso |
| 210 | cloud_init_iface_up: ens4 |
| 211 | volumes: |
| 212 | - name: system |
| 213 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 214 | backing_store: cloudimage1604 |
| 215 | format: qcow2 |
| 216 | - name: iso # Volume with name 'iso' will be used |
| 217 | # for store image with cloud-init metadata. |
| 218 | capacity: 1 |
| 219 | format: raw |
| 220 | device: cdrom |
| 221 | bus: ide |
| 222 | cloudinit_meta_data: *cloudinit_meta_data |
| 223 | cloudinit_user_data: *cloudinit_user_data_cicd |
| 224 | |
| 225 | interfaces: &cid_interfaces |
| 226 | - label: ens3 |
| 227 | l2_network_device: private |
| 228 | interface_model: *interface_model |
| 229 | - label: ens4 |
| 230 | l2_network_device: admin |
| 231 | interface_model: *interface_model |
| 232 | network_config: &cid_network_config |
| 233 | ens3: |
| 234 | networks: |
| 235 | - private |
| 236 | ens4: |
| 237 | networks: |
| 238 | - admin |
| 239 | |
| 240 | - name: {{ HOSTNAME_CID02 }} |
| 241 | role: salt_minion |
| 242 | params: |
Dennis Dmitriev | ea7ee49 | 2017-07-14 20:16:07 +0300 | [diff] [blame^] | 243 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
Dennis Dmitriev | eac3aab | 2017-07-12 16:36:41 +0300 | [diff] [blame] | 244 | memory: !os_env SLAVE_NODE_MEMORY, 6144 |
| 245 | boot: |
| 246 | - hd |
| 247 | cloud_init_volume_name: iso |
| 248 | cloud_init_iface_up: ens4 |
| 249 | volumes: |
| 250 | - name: system |
| 251 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 252 | backing_store: cloudimage1604 |
| 253 | format: qcow2 |
| 254 | - name: iso # Volume with name 'iso' will be used |
| 255 | # for store image with cloud-init metadata. |
| 256 | capacity: 1 |
| 257 | format: raw |
| 258 | device: cdrom |
| 259 | bus: ide |
| 260 | cloudinit_meta_data: *cloudinit_meta_data |
| 261 | cloudinit_user_data: *cloudinit_user_data_cicd |
| 262 | |
| 263 | interfaces: *cid_interfaces |
| 264 | network_config: *cid_network_config |
| 265 | |
| 266 | - name: {{ HOSTNAME_CID03 }} |
| 267 | role: salt_minion |
| 268 | params: |
Dennis Dmitriev | ea7ee49 | 2017-07-14 20:16:07 +0300 | [diff] [blame^] | 269 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
Dennis Dmitriev | eac3aab | 2017-07-12 16:36:41 +0300 | [diff] [blame] | 270 | memory: !os_env SLAVE_NODE_MEMORY, 6144 |
| 271 | boot: |
| 272 | - hd |
| 273 | cloud_init_volume_name: iso |
| 274 | cloud_init_iface_up: ens4 |
| 275 | volumes: |
| 276 | - name: system |
| 277 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 278 | backing_store: cloudimage1604 |
| 279 | format: qcow2 |
| 280 | - name: iso # Volume with name 'iso' will be used |
| 281 | # for store image with cloud-init metadata. |
| 282 | capacity: 1 |
| 283 | format: raw |
| 284 | device: cdrom |
| 285 | bus: ide |
| 286 | cloudinit_meta_data: *cloudinit_meta_data |
| 287 | cloudinit_user_data: *cloudinit_user_data_cicd |
| 288 | |
| 289 | interfaces: *cid_interfaces |
| 290 | network_config: *cid_network_config |
| 291 | |
| 292 | |
| 293 | - name: {{ HOSTNAME_CTL01 }} |
| 294 | role: salt_minion |
| 295 | params: |
Dennis Dmitriev | ea7ee49 | 2017-07-14 20:16:07 +0300 | [diff] [blame^] | 296 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
Dennis Dmitriev | eac3aab | 2017-07-12 16:36:41 +0300 | [diff] [blame] | 297 | memory: !os_env SLAVE_NODE_MEMORY, 6144 |
| 298 | boot: |
| 299 | - hd |
| 300 | cloud_init_volume_name: iso |
| 301 | cloud_init_iface_up: ens3 |
| 302 | volumes: |
| 303 | - name: system |
| 304 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 305 | backing_store: cloudimage1604 |
| 306 | format: qcow2 |
| 307 | - name: cinder |
| 308 | capacity: 50 |
| 309 | format: qcow2 |
| 310 | - name: iso # Volume with name 'iso' will be used |
| 311 | # for store image with cloud-init metadata. |
| 312 | capacity: 1 |
| 313 | format: raw |
| 314 | device: cdrom |
| 315 | bus: ide |
| 316 | cloudinit_meta_data: *cloudinit_meta_data |
| 317 | cloudinit_user_data: *cloudinit_user_data_openstack |
| 318 | |
| 319 | interfaces: &interfaces |
| 320 | - label: ens3 |
| 321 | l2_network_device: admin |
| 322 | interface_model: *interface_model |
| 323 | - label: ens4 |
| 324 | l2_network_device: private |
| 325 | interface_model: *interface_model |
| 326 | network_config: &network_config |
| 327 | ens3: |
| 328 | networks: |
| 329 | - admin |
| 330 | ens4: |
| 331 | networks: |
| 332 | - private |
| 333 | |
| 334 | - name: {{ HOSTNAME_CTL02 }} |
| 335 | role: salt_minion |
| 336 | params: |
Dennis Dmitriev | ea7ee49 | 2017-07-14 20:16:07 +0300 | [diff] [blame^] | 337 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
Dennis Dmitriev | eac3aab | 2017-07-12 16:36:41 +0300 | [diff] [blame] | 338 | memory: !os_env SLAVE_NODE_MEMORY, 6144 |
| 339 | boot: |
| 340 | - hd |
| 341 | cloud_init_volume_name: iso |
| 342 | cloud_init_iface_up: ens3 |
| 343 | volumes: |
| 344 | - name: system |
| 345 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 346 | backing_store: cloudimage1604 |
| 347 | format: qcow2 |
| 348 | - name: cinder |
| 349 | capacity: 50 |
| 350 | format: qcow2 |
| 351 | - name: iso # Volume with name 'iso' will be used |
| 352 | # for store image with cloud-init metadata. |
| 353 | capacity: 1 |
| 354 | format: raw |
| 355 | device: cdrom |
| 356 | bus: ide |
| 357 | cloudinit_meta_data: *cloudinit_meta_data |
| 358 | cloudinit_user_data: *cloudinit_user_data_openstack |
| 359 | |
| 360 | interfaces: *interfaces |
| 361 | network_config: *network_config |
| 362 | |
| 363 | - name: {{ HOSTNAME_CTL03 }} |
| 364 | role: salt_minion |
| 365 | params: |
Dennis Dmitriev | ea7ee49 | 2017-07-14 20:16:07 +0300 | [diff] [blame^] | 366 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
Dennis Dmitriev | eac3aab | 2017-07-12 16:36:41 +0300 | [diff] [blame] | 367 | memory: !os_env SLAVE_NODE_MEMORY, 6144 |
| 368 | boot: |
| 369 | - hd |
| 370 | cloud_init_volume_name: iso |
| 371 | cloud_init_iface_up: ens3 |
| 372 | volumes: |
| 373 | - name: system |
| 374 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 375 | backing_store: cloudimage1604 |
| 376 | format: qcow2 |
| 377 | - name: cinder |
| 378 | capacity: 50 |
| 379 | format: qcow2 |
| 380 | - name: iso # Volume with name 'iso' will be used |
| 381 | # for store image with cloud-init metadata. |
| 382 | capacity: 1 |
| 383 | format: raw |
| 384 | device: cdrom |
| 385 | bus: ide |
| 386 | cloudinit_meta_data: *cloudinit_meta_data |
| 387 | cloudinit_user_data: *cloudinit_user_data_openstack |
| 388 | |
| 389 | interfaces: *interfaces |
| 390 | network_config: *network_config |
| 391 | |
| 392 | - name: {{ HOSTNAME_PRX01 }} |
| 393 | role: salt_minion |
| 394 | params: |
Dennis Dmitriev | ea7ee49 | 2017-07-14 20:16:07 +0300 | [diff] [blame^] | 395 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
Dennis Dmitriev | eac3aab | 2017-07-12 16:36:41 +0300 | [diff] [blame] | 396 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 397 | boot: |
| 398 | - hd |
| 399 | cloud_init_volume_name: iso |
| 400 | cloud_init_iface_up: ens3 |
| 401 | volumes: |
| 402 | - name: system |
| 403 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 404 | backing_store: cloudimage1604 |
| 405 | format: qcow2 |
| 406 | - name: cinder |
| 407 | capacity: 50 |
| 408 | format: qcow2 |
| 409 | - name: iso # Volume with name 'iso' will be used |
| 410 | # for store image with cloud-init metadata. |
| 411 | capacity: 1 |
| 412 | format: raw |
| 413 | device: cdrom |
| 414 | bus: ide |
| 415 | cloudinit_meta_data: *cloudinit_meta_data |
| 416 | cloudinit_user_data: *cloudinit_user_data_openstack |
| 417 | |
| 418 | interfaces: *interfaces |
| 419 | network_config: *network_config |
| 420 | |
| 421 | |
| 422 | - name: {{ HOSTNAME_CMP01 }} |
| 423 | role: salt_minion |
| 424 | params: |
Dennis Dmitriev | ea7ee49 | 2017-07-14 20:16:07 +0300 | [diff] [blame^] | 425 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 426 | memory: !os_env SLAVE_NODE_MEMORY, 3072 |
Dennis Dmitriev | eac3aab | 2017-07-12 16:36:41 +0300 | [diff] [blame] | 427 | boot: |
| 428 | - hd |
| 429 | cloud_init_volume_name: iso |
| 430 | cloud_init_iface_up: ens3 |
| 431 | volumes: |
| 432 | - name: system |
| 433 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 434 | backing_store: cloudimage1604 |
| 435 | format: qcow2 |
| 436 | - name: iso # Volume with name 'iso' will be used |
| 437 | # for store image with cloud-init metadata. |
| 438 | capacity: 1 |
| 439 | format: raw |
| 440 | device: cdrom |
| 441 | bus: ide |
| 442 | cloudinit_meta_data: *cloudinit_meta_data |
| 443 | cloudinit_user_data: *cloudinit_user_data_openstack |
| 444 | |
| 445 | |
| 446 | interfaces: &all_interfaces |
| 447 | - label: ens3 |
| 448 | l2_network_device: admin |
| 449 | interface_model: *interface_model |
| 450 | - label: ens4 |
| 451 | l2_network_device: private |
| 452 | interface_model: *interface_model |
| 453 | - label: ens5 |
| 454 | l2_network_device: tenant |
| 455 | interface_model: *interface_model |
| 456 | - label: ens6 |
| 457 | l2_network_device: external |
| 458 | interface_model: *interface_model |
| 459 | network_config: &all_network_config |
| 460 | ens3: |
| 461 | networks: |
| 462 | - admin |
| 463 | ens4: |
| 464 | networks: |
| 465 | - private |
| 466 | ens5: |
| 467 | networks: |
| 468 | - tenant |
| 469 | ens6: |
| 470 | networks: |
| 471 | - external |
| 472 | |
| 473 | - name: {{ HOSTNAME_CMP02 }} |
| 474 | role: salt_minion |
| 475 | params: |
Dennis Dmitriev | ea7ee49 | 2017-07-14 20:16:07 +0300 | [diff] [blame^] | 476 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 477 | memory: !os_env SLAVE_NODE_MEMORY, 3072 |
Dennis Dmitriev | eac3aab | 2017-07-12 16:36:41 +0300 | [diff] [blame] | 478 | boot: |
| 479 | - hd |
| 480 | cloud_init_volume_name: iso |
| 481 | cloud_init_iface_up: ens3 |
| 482 | volumes: |
| 483 | - name: system |
| 484 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 485 | backing_store: cloudimage1604 |
| 486 | format: qcow2 |
| 487 | - name: iso # Volume with name 'iso' will be used |
| 488 | # for store image with cloud-init metadata. |
| 489 | capacity: 1 |
| 490 | format: raw |
| 491 | device: cdrom |
| 492 | bus: ide |
| 493 | cloudinit_meta_data: *cloudinit_meta_data |
| 494 | cloudinit_user_data: *cloudinit_user_data_openstack |
| 495 | |
| 496 | interfaces: *all_interfaces |
| 497 | network_config: *all_network_config |
| 498 | |
| 499 | - name: {{ HOSTNAME_GTW01 }} |
| 500 | role: salt_minion |
| 501 | params: |
| 502 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
| 503 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 504 | boot: |
| 505 | - hd |
| 506 | cloud_init_volume_name: iso |
| 507 | cloud_init_iface_up: ens3 |
| 508 | volumes: |
| 509 | - name: system |
| 510 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 511 | backing_store: cloudimage1604 |
| 512 | format: qcow2 |
| 513 | - name: iso # Volume with name 'iso' will be used |
| 514 | # for store image with cloud-init metadata. |
| 515 | capacity: 1 |
| 516 | format: raw |
| 517 | device: cdrom |
| 518 | bus: ide |
| 519 | cloudinit_meta_data: *cloudinit_meta_data |
| 520 | cloudinit_user_data: *cloudinit_user_data_openstack |
| 521 | |
| 522 | interfaces: *all_interfaces |
| 523 | network_config: *all_network_config |