blob: ef444e7901d69cfc3eacdfb451e2f4ab0396c722 [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
Dennis Dmitriev3d28aa32018-07-04 16:14:59 +030071 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 Dmitriev85559962018-01-30 15:35:51 +020076 nodes:
77 - name: {{ HOSTNAME_CFG01 }}
78 role: salt_master
79 params:
80 vcpu: {{ os_env('CFG_NODE_CPU', 4) }}
Dennis Dmitriev75e250f2018-02-26 17:13:59 +020081 memory: {{ os_env('CFG_NODE_MEMORY', 8192) }}
Dennis Dmitriev85559962018-01-30 15:35:51 +020082 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 Dmitriev3d28aa32018-07-04 16:14:59 +030089 backing_store: cfg01_day01_image
Dennis Dmitriev85559962018-01-30 15:35:51 +020090 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 Dmitrievbf6e4e02018-03-26 20:37:44 +0300102 l2_network_device: external
103 interface_model: *interface_model
104 - label: ens4
Dennis Dmitriev85559962018-01-30 15:35:51 +0200105 l2_network_device: admin
106 interface_model: *interface_model
107 network_config:
108 ens3:
109 networks:
Dennis Dmitrievbf6e4e02018-03-26 20:37:44 +0300110 - external
111 ens4:
112 networks:
Dennis Dmitriev85559962018-01-30 15:35:51 +0200113 - admin