blob: 25fb76c3f6dffd366bc2e3594a54fec6bed6c88c [file] [log] [blame]
Dennis Dmitriev85559962018-01-30 15:35:51 +02001# 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 Dmitriev92295c02018-02-02 13:18:25 +02006{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01') %}
Dennis Dmitriev85559962018-01-30 15:35:51 +02007
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---
12aliases:
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
17template:
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
32 groups:
33 - name: default
34 driver:
35 name: devops.driver.libvirt
36 params:
37 connection_string: {{ os_env('CONNECTION_STRING', 'qemu:///system') }}
38 storage_pool_name: {{ os_env('STORAGE_POOL_NAME', 'default') }}
39 stp: False
40 hpet: False
41 enable_acpi: true
42 use_host_cpu: {{ os_env('DRIVER_USE_HOST_CPU', true) }}
43 use_hugepages: {{ os_env('DRIVER_USE_HUGEPAGES', false) }}
44
45 network_pools:
46 admin: admin-pool01
47
48 l2_network_devices:
49 admin:
50 address_pool: admin-pool01
51 dhcp: true
52 forward:
53 mode: nat
54
55 nodes:
56 - name: {{ HOSTNAME_CFG01 }}
57 role: salt_master
58 params:
59 vcpu: {{ os_env('CFG_NODE_CPU', 4) }}
Dennis Dmitriev75e250f2018-02-26 17:13:59 +020060 memory: {{ os_env('CFG_NODE_MEMORY', 8192) }}
Dennis Dmitriev85559962018-01-30 15:35:51 +020061 boot:
62 - hd
63 cloud_init_volume_name: iso
64 cloud_init_iface_up: ens3
65 volumes:
66 - name: system
67 capacity: {{ os_env('CFG_NODE_VOLUME_SIZE', 150) }}
68 shared_backing_store_name: {{ os_env('CFG01_DAY01_VOLUME_NAME') }}
69 format: qcow2
70 - name: iso # Volume with name 'iso' will be used
71 # for store image with cloud-init metadata.
72 capacity: 1
73 format: raw
74 device: cdrom
75 bus: ide
76 cloudinit_meta_data: *cloudinit_meta_data
77 cloudinit_user_data: *cloudinit_user_data_cfg01
78
79 interfaces:
80 - label: ens3
81 l2_network_device: admin
82 interface_model: *interface_model
83 network_config:
84 ens3:
85 networks:
86 - admin