ibumarskov | 712a687 | 2018-04-25 09:22:15 +0400 | [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-trusty/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %} |
| 5 | {% import 'virtual-mcp-trusty/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %} |
| 6 | {% import 'virtual-mcp-trusty/underlay--user-data1404.yaml' as CLOUDINIT_USER_DATA1404 with context %} |
| 7 | |
| 8 | --- |
| 9 | aliases: |
| 10 | - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }} |
| 11 | - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }} |
| 12 | - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }} |
| 13 | - &cloudinit_user_data_1404 {{ CLOUDINIT_USER_DATA1404 }} |
| 14 | |
| 15 | {% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp-trusty') %} |
| 16 | {% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %} |
| 17 | {% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %} |
| 18 | {% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %} |
| 19 | {% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %} |
| 20 | {% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %} |
| 21 | {% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %} |
| 22 | {% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %} |
| 23 | {% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %} |
| 24 | {% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %} |
| 25 | {% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %} |
| 26 | {% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %} |
| 27 | {% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %} |
| 28 | |
| 29 | template: |
| 30 | devops_settings: |
| 31 | env_name: {{ os_env('ENV_NAME', 'virtual-mcp-trusty_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }} |
| 32 | |
| 33 | address_pools: |
| 34 | private-pool01: |
| 35 | net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }} |
| 36 | params: |
| 37 | ip_reserved: |
| 38 | gateway: +1 |
| 39 | l2_network_device: +1 |
| 40 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 41 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 42 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 43 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 44 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 45 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 46 | default_{{ HOSTNAME_MON01 }}: +107 |
| 47 | default_{{ HOSTNAME_MON02 }}: +108 |
| 48 | default_{{ HOSTNAME_MON03 }}: +109 |
| 49 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 50 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 51 | ip_ranges: |
| 52 | dhcp: [+90, -10] |
| 53 | |
| 54 | admin-pool01: |
| 55 | net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }} |
| 56 | params: |
| 57 | ip_reserved: |
| 58 | gateway: +1 |
| 59 | l2_network_device: +1 |
| 60 | default_{{ HOSTNAME_CFG01 }}: +90 |
| 61 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 62 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 63 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 64 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 65 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 66 | default_{{ HOSTNAME_MON01 }}: +107 |
| 67 | default_{{ HOSTNAME_MON02 }}: +108 |
| 68 | default_{{ HOSTNAME_MON03 }}: +109 |
| 69 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 70 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 71 | ip_ranges: |
| 72 | dhcp: [+90, -10] |
| 73 | |
| 74 | tenant-pool01: |
| 75 | net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }} |
| 76 | params: |
| 77 | ip_reserved: |
| 78 | gateway: +1 |
| 79 | l2_network_device: +1 |
| 80 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 81 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 82 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 83 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 84 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 85 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 86 | default_{{ HOSTNAME_MON01 }}: +107 |
| 87 | default_{{ HOSTNAME_MON02 }}: +108 |
| 88 | default_{{ HOSTNAME_MON03 }}: +109 |
| 89 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 90 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 91 | ip_ranges: |
| 92 | dhcp: [+10, -10] |
| 93 | |
| 94 | external-pool01: |
| 95 | net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }} |
| 96 | params: |
| 97 | ip_reserved: |
| 98 | gateway: +1 |
| 99 | l2_network_device: +1 |
| 100 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 101 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 102 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 103 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 104 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 105 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 106 | default_{{ HOSTNAME_MON01 }}: +107 |
| 107 | default_{{ HOSTNAME_MON02 }}: +108 |
| 108 | default_{{ HOSTNAME_MON03 }}: +109 |
| 109 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 110 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 111 | ip_ranges: |
| 112 | dhcp: [+10, -10] |
| 113 | |
| 114 | |
| 115 | groups: |
| 116 | - name: default |
| 117 | driver: |
| 118 | name: devops.driver.libvirt |
| 119 | params: |
| 120 | connection_string: !os_env CONNECTION_STRING, qemu:///system |
| 121 | storage_pool_name: !os_env STORAGE_POOL_NAME, default |
| 122 | stp: False |
| 123 | hpet: False |
| 124 | enable_acpi: true |
| 125 | use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true |
| 126 | use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false |
| 127 | |
| 128 | network_pools: |
| 129 | admin: admin-pool01 |
| 130 | private: private-pool01 |
| 131 | tenant: tenant-pool01 |
| 132 | external: external-pool01 |
| 133 | |
| 134 | l2_network_devices: |
| 135 | private: |
| 136 | address_pool: private-pool01 |
| 137 | dhcp: false |
| 138 | forward: |
| 139 | mode: route |
| 140 | |
| 141 | admin: |
| 142 | address_pool: admin-pool01 |
| 143 | dhcp: true |
| 144 | forward: |
| 145 | mode: nat |
| 146 | |
| 147 | tenant: |
| 148 | address_pool: tenant-pool01 |
| 149 | dhcp: false |
| 150 | |
| 151 | external: |
| 152 | address_pool: external-pool01 |
| 153 | dhcp: true |
| 154 | forward: |
| 155 | mode: nat |
| 156 | |
| 157 | |
| 158 | group_volumes: |
| 159 | - name: cloudimage1404 # This name is used for 'backing_store' option for node volumes. |
| 160 | source_image: !os_env IMAGE_PATH1404 # https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img |
| 161 | format: qcow2 |
| 162 | - name: cfg01_day01_image # Pre-configured day01 image |
| 163 | source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604 |
| 164 | format: qcow2 |
| 165 | |
| 166 | nodes: |
| 167 | - name: {{ HOSTNAME_CFG01 }} |
| 168 | role: salt_master |
| 169 | params: |
| 170 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 171 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 172 | boot: |
| 173 | - hd |
| 174 | cloud_init_volume_name: iso |
| 175 | cloud_init_iface_up: ens3 |
| 176 | volumes: |
| 177 | - name: system |
| 178 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 179 | backing_store: cfg01_day01_image |
| 180 | format: qcow2 |
| 181 | - name: iso # Volume with name 'iso' will be used |
| 182 | # for store image with cloud-init metadata. |
| 183 | capacity: 1 |
| 184 | format: raw |
| 185 | device: cdrom |
| 186 | bus: ide |
| 187 | cloudinit_meta_data: *cloudinit_meta_data |
| 188 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
| 189 | |
| 190 | interfaces: |
| 191 | - label: ens3 |
| 192 | l2_network_device: admin |
| 193 | interface_model: *interface_model |
| 194 | - label: ens4 |
| 195 | l2_network_device: private |
| 196 | interface_model: *interface_model |
ibumarskov | 8354e83 | 2018-05-23 15:33:55 +0400 | [diff] [blame] | 197 | - label: ens5 |
| 198 | l2_network_device: tenant |
| 199 | interface_model: *interface_model |
| 200 | - label: ens6 |
| 201 | l2_network_device: external |
| 202 | interface_model: *interface_model |
ibumarskov | 712a687 | 2018-04-25 09:22:15 +0400 | [diff] [blame] | 203 | network_config: |
| 204 | ens3: |
| 205 | networks: |
| 206 | - admin |
| 207 | ens4: |
| 208 | networks: |
| 209 | - private |
ibumarskov | 8354e83 | 2018-05-23 15:33:55 +0400 | [diff] [blame] | 210 | ens5: |
| 211 | networks: |
| 212 | - tenant |
| 213 | ens6: |
| 214 | networks: |
| 215 | - external |
ibumarskov | 712a687 | 2018-04-25 09:22:15 +0400 | [diff] [blame] | 216 | |
| 217 | - name: {{ HOSTNAME_CTL01 }} |
| 218 | role: salt_minion |
| 219 | params: |
| 220 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 221 | memory: !os_env SLAVE_NODE_MEMORY, 12288 |
| 222 | boot: |
| 223 | - hd |
| 224 | cloud_init_volume_name: iso |
| 225 | cloud_init_iface_up: ens3 |
| 226 | volumes: |
| 227 | - name: system |
| 228 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 229 | backing_store: cloudimage1404 |
| 230 | format: qcow2 |
| 231 | - name: cinder |
| 232 | capacity: 50 |
| 233 | format: qcow2 |
| 234 | - name: iso # Volume with name 'iso' will be used |
| 235 | # for store image with cloud-init metadata. |
| 236 | capacity: 1 |
| 237 | format: raw |
| 238 | device: cdrom |
| 239 | bus: ide |
| 240 | cloudinit_meta_data: *cloudinit_meta_data |
| 241 | cloudinit_user_data: *cloudinit_user_data_1404 |
| 242 | |
| 243 | interfaces: &interfaces |
| 244 | - label: ens3 |
| 245 | l2_network_device: admin |
| 246 | interface_model: *interface_model |
| 247 | - label: ens4 |
| 248 | l2_network_device: private |
| 249 | interface_model: *interface_model |
| 250 | network_config: &network_config |
| 251 | ens3: |
| 252 | networks: |
| 253 | - admin |
| 254 | ens4: |
| 255 | networks: |
| 256 | - private |
| 257 | |
| 258 | - name: {{ HOSTNAME_CTL02 }} |
| 259 | role: salt_minion |
| 260 | params: |
| 261 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 262 | memory: !os_env SLAVE_NODE_MEMORY, 12288 |
| 263 | boot: |
| 264 | - hd |
| 265 | cloud_init_volume_name: iso |
| 266 | cloud_init_iface_up: ens3 |
| 267 | volumes: |
| 268 | - name: system |
| 269 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 270 | backing_store: cloudimage1404 |
| 271 | format: qcow2 |
| 272 | - name: cinder |
| 273 | capacity: 50 |
| 274 | format: qcow2 |
| 275 | - name: iso # Volume with name 'iso' will be used |
| 276 | # for store image with cloud-init metadata. |
| 277 | capacity: 1 |
| 278 | format: raw |
| 279 | device: cdrom |
| 280 | bus: ide |
| 281 | cloudinit_meta_data: *cloudinit_meta_data |
| 282 | cloudinit_user_data: *cloudinit_user_data_1404 |
| 283 | |
| 284 | interfaces: *interfaces |
| 285 | network_config: *network_config |
| 286 | |
| 287 | - name: {{ HOSTNAME_CTL03 }} |
| 288 | role: salt_minion |
| 289 | params: |
| 290 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 291 | memory: !os_env SLAVE_NODE_MEMORY, 12288 |
| 292 | boot: |
| 293 | - hd |
| 294 | cloud_init_volume_name: iso |
| 295 | cloud_init_iface_up: ens3 |
| 296 | volumes: |
| 297 | - name: system |
| 298 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 299 | backing_store: cloudimage1404 |
| 300 | format: qcow2 |
| 301 | - name: cinder |
| 302 | capacity: 50 |
| 303 | format: qcow2 |
| 304 | - name: iso # Volume with name 'iso' will be used |
| 305 | # for store image with cloud-init metadata. |
| 306 | capacity: 1 |
| 307 | format: raw |
| 308 | device: cdrom |
| 309 | bus: ide |
| 310 | cloudinit_meta_data: *cloudinit_meta_data |
| 311 | cloudinit_user_data: *cloudinit_user_data_1404 |
| 312 | |
| 313 | interfaces: *interfaces |
| 314 | network_config: *network_config |
| 315 | |
| 316 | - name: {{ HOSTNAME_PRX01 }} |
| 317 | role: salt_minion |
| 318 | params: |
| 319 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
| 320 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 321 | boot: |
| 322 | - hd |
| 323 | cloud_init_volume_name: iso |
| 324 | cloud_init_iface_up: ens3 |
| 325 | volumes: |
| 326 | - name: system |
| 327 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 328 | backing_store: cloudimage1404 |
| 329 | format: qcow2 |
| 330 | - name: cinder |
| 331 | capacity: 50 |
| 332 | format: qcow2 |
| 333 | - name: iso # Volume with name 'iso' will be used |
| 334 | # for store image with cloud-init metadata. |
| 335 | capacity: 1 |
| 336 | format: raw |
| 337 | device: cdrom |
| 338 | bus: ide |
| 339 | cloudinit_meta_data: *cloudinit_meta_data |
| 340 | cloudinit_user_data: *cloudinit_user_data_1404 |
| 341 | |
| 342 | interfaces: *interfaces |
| 343 | network_config: *network_config |
| 344 | |
| 345 | - name: {{ HOSTNAME_CMP01 }} |
| 346 | role: salt_minion |
| 347 | params: |
| 348 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
| 349 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 350 | boot: |
| 351 | - hd |
| 352 | cloud_init_volume_name: iso |
| 353 | cloud_init_iface_up: ens3 |
| 354 | volumes: |
| 355 | - name: system |
| 356 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 357 | backing_store: cloudimage1404 |
| 358 | format: qcow2 |
| 359 | - name: iso # Volume with name 'iso' will be used |
| 360 | # for store image with cloud-init metadata. |
| 361 | capacity: 1 |
| 362 | format: raw |
| 363 | device: cdrom |
| 364 | bus: ide |
| 365 | cloudinit_meta_data: *cloudinit_meta_data |
| 366 | cloudinit_user_data: *cloudinit_user_data_1404 |
| 367 | |
| 368 | |
| 369 | interfaces: &all_interfaces |
| 370 | - label: ens3 |
| 371 | l2_network_device: admin |
| 372 | interface_model: *interface_model |
| 373 | - label: ens4 |
| 374 | l2_network_device: private |
| 375 | interface_model: *interface_model |
| 376 | - label: ens5 |
| 377 | l2_network_device: tenant |
| 378 | interface_model: *interface_model |
| 379 | - label: ens6 |
| 380 | l2_network_device: external |
| 381 | interface_model: *interface_model |
| 382 | network_config: &all_network_config |
| 383 | ens3: |
| 384 | networks: |
| 385 | - admin |
| 386 | ens4: |
| 387 | networks: |
| 388 | - private |
| 389 | ens5: |
| 390 | networks: |
| 391 | - tenant |
| 392 | ens6: |
| 393 | networks: |
| 394 | - external |
| 395 | |
| 396 | - name: {{ HOSTNAME_CMP02 }} |
| 397 | role: salt_minion |
| 398 | params: |
| 399 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
| 400 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 401 | boot: |
| 402 | - hd |
| 403 | cloud_init_volume_name: iso |
| 404 | cloud_init_iface_up: ens3 |
| 405 | volumes: |
| 406 | - name: system |
| 407 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 408 | backing_store: cloudimage1404 |
| 409 | format: qcow2 |
| 410 | - name: iso # Volume with name 'iso' will be used |
| 411 | # for store image with cloud-init metadata. |
| 412 | capacity: 1 |
| 413 | format: raw |
| 414 | device: cdrom |
| 415 | bus: ide |
| 416 | cloudinit_meta_data: *cloudinit_meta_data |
| 417 | cloudinit_user_data: *cloudinit_user_data_1404 |
| 418 | |
| 419 | interfaces: *all_interfaces |
| 420 | network_config: *all_network_config |
| 421 | |
| 422 | - name: {{ HOSTNAME_GTW01 }} |
| 423 | role: salt_minion |
| 424 | params: |
| 425 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
| 426 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 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: cloudimage1404 |
| 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_1404 |
| 444 | |
| 445 | interfaces: *all_interfaces |
| 446 | network_config: *all_network_config |