blob: 07b38e042bfc4848873612c5a4740c8b42e1ac7b [file] [log] [blame]
Dennis Dmitriev3fbbc7f2017-12-21 15:42:14 +02001{% import 'mcp-local-aptly/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
2{% import 'mcp-local-aptly/underlay--user-data-apt01.yaml' as CLOUDINIT_USER_DATA_APT01 with context %}
3
4---
5aliases:
6 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
7 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
8 - &cloudinit_user_data_apt01 {{ CLOUDINIT_USER_DATA_APT01 }}
9
10{% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'mcp-local-aptly') + '.local' %}
11{% set HOSTNAME_APT01 = os_env('HOSTNAME_APT01', 'apt01.' + DOMAIN_NAME) %}
12
13template:
14 devops_settings:
15 env_name: {{ os_env('ENV_NAME', 'mcp-local-aptly_' + os_env('BUILD_NUMBER', '')) }}
16
17 address_pools:
18 admin-pool01:
Dennis Dmitriev55ddd792017-12-22 16:35:57 +020019 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.170.0.240/28:28') }}
Dennis Dmitriev3fbbc7f2017-12-21 15:42:14 +020020 params:
21 ip_reserved:
Dennis Dmitriev55ddd792017-12-22 16:35:57 +020022 gateway: +2
Dennis Dmitriev3fbbc7f2017-12-21 15:42:14 +020023 l2_network_device: +1
Dennis Dmitriev55ddd792017-12-22 16:35:57 +020024 default_{{ HOSTNAME_APT01 }}: +2 #10.170.0.242
Dennis Dmitriev3fbbc7f2017-12-21 15:42:14 +020025 ip_ranges:
Dennis Dmitriev55ddd792017-12-22 16:35:57 +020026 dhcp: [+5, +10]
Dennis Dmitriev3fbbc7f2017-12-21 15:42:14 +020027
28 groups:
29 - name: default
30 driver:
31 name: devops.driver.libvirt
32 params:
33 connection_string: !os_env CONNECTION_STRING, qemu:///system
34 storage_pool_name: !os_env STORAGE_POOL_NAME, default
35 stp: False
36 hpet: False
37 enable_acpi: true
38 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
39 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
40
41 network_pools:
42 admin: admin-pool01
43
44 l2_network_devices:
45 admin:
46 address_pool: admin-pool01
47 forward:
48 mode: route
49 dhcp: true
50
51 nodes:
52 - name: {{ HOSTNAME_APT01 }}
53 role: salt-minion
54 params:
55 vcpu: !os_env SLAVE_NODE_CPU, 4
56 memory: !os_env SLAVE_NODE_MEMORY, 4096
57 boot:
58 - hd
59 cloud_init_volume_name: iso
60 cloud_init_iface_up: ens3
61 volumes:
62 - name: system
63 capacity: !os_env NODE_VOLUME_SIZE, 550
64 shared_backing_store_name: !os_env APT_VOLUME_NAME
65 format: qcow2
66 - name: iso # Volume with name 'iso' will be used
67 # for store image with cloud-init metadata.
68 capacity: 1
69 format: raw
70 device: cdrom
71 bus: ide
72 cloudinit_meta_data: *cloudinit_meta_data
73 cloudinit_user_data: *cloudinit_user_data_apt01
74
75 interfaces:
76 - label: ens3
77 l2_network_device: admin
78 interface_model: *interface_model
79 network_config:
80 ens3:
81 networks:
82 - admin