Dennis Dmitriev | 8555996 | 2018-01-30 15:35:51 +0200 | [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 | {% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'cookied-model-generator') %} |
| 5 | {% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME + '.local') %} |
Dennis Dmitriev | 92295c0 | 2018-02-02 13:18:25 +0200 | [diff] [blame] | 6 | {% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01') %} |
Dennis Dmitriev | 8555996 | 2018-01-30 15:35:51 +0200 | [diff] [blame] | 7 | |
| 8 | {% import 'cookied-model-generator/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %} |
| 9 | {% import 'cookied-model-generator/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %} |
| 10 | |
| 11 | --- |
| 12 | aliases: |
| 13 | - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }} |
| 14 | - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }} |
| 15 | - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }} |
| 16 | |
| 17 | template: |
| 18 | devops_settings: |
| 19 | env_name: {{ os_env('ENV_NAME', LAB_CONFIG_NAME + '_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }} |
| 20 | |
| 21 | address_pools: |
| 22 | admin-pool01: |
| 23 | net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }} |
| 24 | params: |
| 25 | ip_reserved: |
| 26 | gateway: +1 |
| 27 | l2_network_device: +1 |
| 28 | default_{{ HOSTNAME_CFG01 }}: +15 |
| 29 | ip_ranges: |
| 30 | dhcp: [+90, -10] |
| 31 | |
Dennis Dmitriev | bf6e4e0 | 2018-03-26 20:37:44 +0300 | [diff] [blame] | 32 | external-pool01: |
| 33 | net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.90.0.0/16:24') }} |
| 34 | params: |
| 35 | ip_reserved: |
| 36 | gateway: +1 |
| 37 | l2_network_device: +1 |
| 38 | default_{{ HOSTNAME_CFG01 }}: +15 |
| 39 | ip_ranges: |
| 40 | dhcp: [+90, -10] |
| 41 | |
Dennis Dmitriev | 8555996 | 2018-01-30 15:35:51 +0200 | [diff] [blame] | 42 | groups: |
| 43 | - name: default |
| 44 | driver: |
| 45 | name: devops.driver.libvirt |
| 46 | params: |
| 47 | connection_string: {{ os_env('CONNECTION_STRING', 'qemu:///system') }} |
| 48 | storage_pool_name: {{ os_env('STORAGE_POOL_NAME', 'default') }} |
| 49 | stp: False |
| 50 | hpet: False |
| 51 | enable_acpi: true |
| 52 | use_host_cpu: {{ os_env('DRIVER_USE_HOST_CPU', true) }} |
| 53 | use_hugepages: {{ os_env('DRIVER_USE_HUGEPAGES', false) }} |
| 54 | |
| 55 | network_pools: |
| 56 | admin: admin-pool01 |
| 57 | |
| 58 | l2_network_devices: |
Dennis Dmitriev | bf6e4e0 | 2018-03-26 20:37:44 +0300 | [diff] [blame] | 59 | external: |
| 60 | address_pool: external-pool01 |
| 61 | dhcp: true |
| 62 | forward: |
| 63 | mode: nat |
| 64 | |
Dennis Dmitriev | 8555996 | 2018-01-30 15:35:51 +0200 | [diff] [blame] | 65 | admin: |
| 66 | address_pool: admin-pool01 |
| 67 | dhcp: true |
| 68 | forward: |
Dennis Dmitriev | bf6e4e0 | 2018-03-26 20:37:44 +0300 | [diff] [blame] | 69 | mode: route |
Dennis Dmitriev | 8555996 | 2018-01-30 15:35:51 +0200 | [diff] [blame] | 70 | |
| 71 | nodes: |
| 72 | - name: {{ HOSTNAME_CFG01 }} |
| 73 | role: salt_master |
| 74 | params: |
| 75 | vcpu: {{ os_env('CFG_NODE_CPU', 4) }} |
Dennis Dmitriev | 75e250f | 2018-02-26 17:13:59 +0200 | [diff] [blame] | 76 | memory: {{ os_env('CFG_NODE_MEMORY', 8192) }} |
Dennis Dmitriev | 8555996 | 2018-01-30 15:35:51 +0200 | [diff] [blame] | 77 | boot: |
| 78 | - hd |
| 79 | cloud_init_volume_name: iso |
| 80 | cloud_init_iface_up: ens3 |
| 81 | volumes: |
| 82 | - name: system |
| 83 | capacity: {{ os_env('CFG_NODE_VOLUME_SIZE', 150) }} |
| 84 | shared_backing_store_name: {{ os_env('CFG01_DAY01_VOLUME_NAME') }} |
| 85 | format: qcow2 |
| 86 | - name: iso # Volume with name 'iso' will be used |
| 87 | # for store image with cloud-init metadata. |
| 88 | capacity: 1 |
| 89 | format: raw |
| 90 | device: cdrom |
| 91 | bus: ide |
| 92 | cloudinit_meta_data: *cloudinit_meta_data |
| 93 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
| 94 | |
| 95 | interfaces: |
| 96 | - label: ens3 |
Dennis Dmitriev | bf6e4e0 | 2018-03-26 20:37:44 +0300 | [diff] [blame] | 97 | l2_network_device: external |
| 98 | interface_model: *interface_model |
| 99 | - label: ens4 |
Dennis Dmitriev | 8555996 | 2018-01-30 15:35:51 +0200 | [diff] [blame] | 100 | l2_network_device: admin |
| 101 | interface_model: *interface_model |
| 102 | network_config: |
| 103 | ens3: |
| 104 | networks: |
Dennis Dmitriev | bf6e4e0 | 2018-03-26 20:37:44 +0300 | [diff] [blame] | 105 | - external |
| 106 | ens4: |
| 107 | networks: |
Dennis Dmitriev | 8555996 | 2018-01-30 15:35:51 +0200 | [diff] [blame] | 108 | - admin |