blob: 4783bd8d23ea2977dc2d7913f2fc51856df14b96 [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
Dennis Dmitrievbf6e4e02018-03-26 20:37:44 +030032 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 Dmitriev85559962018-01-30 15:35:51 +020042 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 Dmitrievbf6e4e02018-03-26 20:37:44 +030059 external:
60 address_pool: external-pool01
61 dhcp: true
62 forward:
63 mode: nat
64
Dennis Dmitriev85559962018-01-30 15:35:51 +020065 admin:
66 address_pool: admin-pool01
67 dhcp: true
68 forward:
Dennis Dmitrievbf6e4e02018-03-26 20:37:44 +030069 mode: route
Dennis Dmitriev85559962018-01-30 15:35:51 +020070
71 nodes:
72 - name: {{ HOSTNAME_CFG01 }}
73 role: salt_master
74 params:
75 vcpu: {{ os_env('CFG_NODE_CPU', 4) }}
Dennis Dmitriev75e250f2018-02-26 17:13:59 +020076 memory: {{ os_env('CFG_NODE_MEMORY', 8192) }}
Dennis Dmitriev85559962018-01-30 15:35:51 +020077 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 Dmitrievbf6e4e02018-03-26 20:37:44 +030097 l2_network_device: external
98 interface_model: *interface_model
99 - label: ens4
Dennis Dmitriev85559962018-01-30 15:35:51 +0200100 l2_network_device: admin
101 interface_model: *interface_model
102 network_config:
103 ens3:
104 networks:
Dennis Dmitrievbf6e4e02018-03-26 20:37:44 +0300105 - external
106 ens4:
107 networks:
Dennis Dmitriev85559962018-01-30 15:35:51 +0200108 - admin