blob: 9ed29bcda350ead7cbe30ec3a3367c73b330516d [file] [log] [blame]
Oleksii Butenkoef540152019-03-22 15:52:54 +02001# Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required
2{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'proposed') %}
3{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'bm-cicd-queens-ovs-maas') %}
4{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME + '.local') %}
5{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
6
7{% set ETH1_IP_ADDRESS_CFG01 = os_env('ETH1_IP_ADDRESS_CFG01', '172.16.164.2') %}
8
9---
10aliases:
11 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
12 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
13 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
14
15template:
16 devops_settings:
17 env_name: {{ os_env('ENV_NAME', 'bm-cicd-queens-ovs-maas_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
18
19 address_pools:
20 admin-pool01:
21 net: {{ os_env('ADMIN_ADDRESS_POOL01', '172.16.164.0/26:26') }}
22 params:
23 ip_reserved:
24 gateway: +1
25 l2_network_device: +1
26 default_{{ HOSTNAME_CFG01 }}: {{ ETH1_IP_ADDRESS_CFG01 }}
27 ip_ranges:
28 dhcp: [+2, -4]
29 private-pool01:
30 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.167.11.0/24:24') }}
31 params:
32 ip_reserved:
33 gateway: +1
34 l2_network_device: +1
35 ip_ranges:
36 dhcp: [+2, -4]
37
38 tenant-pool01:
39 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.167.12.0/24:24') }}
40 params:
41 ip_reserved:
42 gateway: +1
43 l2_network_device: +1
44 ip_ranges:
45 dhcp: [+2, -4]
46
47 external-pool01:
48 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '172.17.42.0/26:26') }}
49 params:
50 ip_reserved:
51 gateway: '172.17.42.1'
52 ip_ranges:
53 dhcp: ['172.17.42.10', '172.17.42.20']
54
55
56 groups:
57 - name: default
58 driver:
59 name: devops.driver.libvirt
60 params:
61 connection_string: !os_env CONNECTION_STRING, qemu:///system
62 storage_pool_name: !os_env STORAGE_POOL_NAME, default
63 stp: False
64 hpet: False
65 enable_acpi: true
66 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
67 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
68
69 network_pools:
70 admin: admin-pool01
71
72 l2_network_devices:
73 # maas management interface
74 admin:
75 address_pool: admin-pool01
76 dhcp: false
77 forward:
78 mode: bridge
79 parent_iface:
80 phys_dev: !os_env LAB_MANAGEMENT_IFACE
81 private:
82 address_pool: private-pool01
83 dhcp: false
84 forward:
85 mode: bridge
86 parent_iface:
87 phys_dev: !os_env LAB_CONTROL_IFACE
88
89 group_volumes:
90 - name: cfg01_day01_image # Pre-configured day01 image
91 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01') }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
92 format: qcow2
93
94 nodes:
95 - name: {{ HOSTNAME_CFG01 }}
96 role: salt_master
97 params:
Tatyana Leontovich1f069162019-04-02 19:57:55 +030098 vcpu: !os_env SLAVE_NODE_CPU, 8
99 memory: !os_env SLAVE_NODE_MEMORY, 20480
Oleksii Butenkoef540152019-03-22 15:52:54 +0200100 boot:
101 - hd
102 volumes:
103 - name: system
104 capacity: !os_env NODE_VOLUME_SIZE, 150
105 backing_store: cfg01_day01_image
106 format: qcow2
107 - name: config
108 capacity: 1
109 format: raw
110 device: cdrom
111 bus: ide
112
113 interfaces:
114 - label: ens3
115 l2_network_device: admin
116 interface_model: *interface_model
117 - label: ens4
118 l2_network_device: private
119 interface_model: *interface_model
120
121 network_config:
122 ens3:
123 networks:
124 - admin
125 ens4:
126 networks:
127 - private