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 | |
Dennis Dmitriev | 3d28aa3 | 2018-07-04 16:14:59 +0300 | [diff] [blame] | 71 | group_volumes: |
| 72 | - name: cfg01_day01_image # Pre-configured day01 image |
| 73 | source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01') }} # http://images.mirantis.com/cfg01-day01.qcow2 |
| 74 | format: qcow2 |
| 75 | |
Dennis Dmitriev | 8555996 | 2018-01-30 15:35:51 +0200 | [diff] [blame] | 76 | nodes: |
| 77 | - name: {{ HOSTNAME_CFG01 }} |
| 78 | role: salt_master |
| 79 | params: |
| 80 | vcpu: {{ os_env('CFG_NODE_CPU', 4) }} |
Dennis Dmitriev | 75e250f | 2018-02-26 17:13:59 +0200 | [diff] [blame] | 81 | memory: {{ os_env('CFG_NODE_MEMORY', 8192) }} |
Dennis Dmitriev | 8555996 | 2018-01-30 15:35:51 +0200 | [diff] [blame] | 82 | boot: |
| 83 | - hd |
| 84 | cloud_init_volume_name: iso |
| 85 | cloud_init_iface_up: ens3 |
| 86 | volumes: |
| 87 | - name: system |
| 88 | capacity: {{ os_env('CFG_NODE_VOLUME_SIZE', 150) }} |
Dennis Dmitriev | 3d28aa3 | 2018-07-04 16:14:59 +0300 | [diff] [blame] | 89 | backing_store: cfg01_day01_image |
Dennis Dmitriev | 8555996 | 2018-01-30 15:35:51 +0200 | [diff] [blame] | 90 | format: qcow2 |
| 91 | - name: iso # Volume with name 'iso' will be used |
| 92 | # for store image with cloud-init metadata. |
| 93 | capacity: 1 |
| 94 | format: raw |
| 95 | device: cdrom |
| 96 | bus: ide |
| 97 | cloudinit_meta_data: *cloudinit_meta_data |
| 98 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
| 99 | |
| 100 | interfaces: |
| 101 | - label: ens3 |
Dennis Dmitriev | bf6e4e0 | 2018-03-26 20:37:44 +0300 | [diff] [blame] | 102 | l2_network_device: external |
| 103 | interface_model: *interface_model |
| 104 | - label: ens4 |
Dennis Dmitriev | 8555996 | 2018-01-30 15:35:51 +0200 | [diff] [blame] | 105 | l2_network_device: admin |
| 106 | interface_model: *interface_model |
| 107 | network_config: |
| 108 | ens3: |
| 109 | networks: |
Dennis Dmitriev | bf6e4e0 | 2018-03-26 20:37:44 +0300 | [diff] [blame] | 110 | - external |
| 111 | ens4: |
| 112 | networks: |
Dennis Dmitriev | 8555996 | 2018-01-30 15:35:51 +0200 | [diff] [blame] | 113 | - admin |