blob: 0cf698d7fd9f157ec9e5c2c1cd0daa81548bef10 [file] [log] [blame]
Tatyana Leontovichbfbc4832018-12-27 12:47:23 +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
4#{% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'physical_mcp11_ovs_dpdk') + '.local' %}
5{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'cookied-cicd-bm-os-contrail32-maas-2018.8.0') %}
6{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME + '.local') %}
7{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01') %}
8
9{% set ETH1_IP_ADDRESS_CFG01 = os_env('ETH1_IP_ADDRESS_CFG01', '172.16.49.66') %}
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
17
18template:
19 devops_settings:
20 env_name: {{ os_env('ENV_NAME', 'cookied-cicd-bm-os-contrail32-maas-2018.8.0_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
21
22 address_pools:
23 admin-pool01:
24 net: {{ os_env('ADMIN_ADDRESS_POOL01', '172.16.49.64/26:26') }}
25 params:
26 ip_reserved:
27 gateway: '172.16.49.65'
28 l2_network_device: +61
29 default_{{ HOSTNAME_CFG01 }}: {{ ETH1_IP_ADDRESS_CFG01 }}
30 ip_ranges:
31 dhcp: [+2, -3]
32 private-pool01:
33 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.167.8.0/24:24') }}
34 params:
35 ip_reserved:
36 gateway: +1
37 l2_network_device: +1
38 ip_ranges:
39 dhcp: [+2, -3]
40
41 tenant-pool01:
42 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.167.10.0/24:24') }}
43 params:
44 ip_reserved:
45 gateway: +1
46 l2_network_device: +1
47 ip_ranges:
48 dhcp: [+2, -3]
49
50 external-pool01:
51 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '172.17.42.192/26:26') }}
52 params:
53 ip_reserved:
54 gateway: +1
55 l2_network_device: -2
56 ip_ranges:
57 dhcp: [+2, -3]
58
59 groups:
60
61 - name: default
62 driver:
63 name: devops.driver.libvirt
64 params:
65 connection_string: !os_env CONNECTION_STRING, qemu:///system
66 storage_pool_name: !os_env STORAGE_POOL_NAME, default
67 stp: False
68 hpet: False
69 enable_acpi: true
70 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
71
72 network_pools:
73 admin: admin-pool01
74
75 l2_network_devices:
76 admin:
77 address_pool: admin-pool01
78 dhcp: false
79 forward:
80 mode: bridge
81 parent_iface:
82 phys_dev: !os_env LAB_MANAGEMENT_IFACE
83 private:
84 address_pool: private-pool01
85 dhcp: false
86 forward:
87 mode: bridge
88 parent_iface:
89 phys_dev: !os_env LAB_CONTROL_IFACE
90
91 group_volumes:
92 - name: cfg01_day01_image # Pre-configured day01 image
93 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01') }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
94 format: qcow2
95
96 nodes:
97 - name: {{ HOSTNAME_CFG01 }}
98 role: salt_master
99 params:
100 vcpu: !os_env SLAVE_NODE_CPU, 4
101 memory: !os_env SLAVE_NODE_MEMORY, 12288
102 boot:
103 - hd
104 volumes:
105 - name: system
106 capacity: !os_env NODE_VOLUME_SIZE, 150
107 backing_store: cfg01_day01_image
108 format: qcow2
109 - name: config
110 capacity: 1
111 format: raw
112 device: cdrom
113 bus: ide
114
115 interfaces:
116 - label: ens3
117 l2_network_device: admin
118 interface_model: *interface_model
119 - label: ens4
120 l2_network_device: private
121 interface_model: *interface_model
122
123 network_config:
124 ens3:
125 networks:
126 - admin
127 ens4:
128 networks:
129 - private