blob: 4e7082aa57a3a578a914d72cf5093e00c504bfce [file] [log] [blame]
sgudzf5a51222018-05-11 14:20:50 +03001# 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{% import 'cookied-bm-contrail-maas/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'cookied-bm-contrail-maas/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
sgudzf5a51222018-05-11 14:20:50 +03006
7{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'cookied-bm-contrail-maas') %}
8{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %}
9{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
10
11{% set MAAS_DHCP_POOL_START = os_env('MAAS_DHCP_POOL_START', '172.16.49.77') %}
12{% set MAAS_DHCP_POOL_END = os_env('MAAS_DHCP_POOL_END', '172.16.49.119') %}
13
14{% set ETH1_IP_ADDRESS_CFG01 = os_env('ETH1_IP_ADDRESS_CFG01', '172.16.49.66') %}
15
16---
17aliases:
18 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
19 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
20 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
sgudzf5a51222018-05-11 14:20:50 +030021
22template:
23 devops_settings:
24 env_name: {{ os_env('ENV_NAME', 'cookied-bm-contrail-maas_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
25
26 address_pools:
27 admin-pool01:
28 net: {{ os_env('MAAS_ADMIN_ADDRESS_POOL01', '10.50.0.0/16:24') }}
29 params:
30 ip_reserved:
31 gateway: +1
32 l2_network_device: +1
33 default_{{ HOSTNAME_CFG01 }}: +2
34 ip_ranges:
35 dhcp: [+90, -10]
36
37 provisioning-pool01:
38 net: {{ os_env('ADMIN_ADDRESS_POOL01', '172.16.49.64/26:26') }}
39 params:
40 ip_reserved:
41 gateway: +61
42 l2_network_device: +61
43 default_{{ HOSTNAME_CFG01 }}: +2
44 virtual_{{ HOSTNAME_CFG01 }}: +2
45 ip_ranges:
46 dhcp: [+12, +55]
47
48 groups:
49 - name: default
50 driver:
51 name: devops.driver.libvirt
52 params:
53 connection_string: !os_env CONNECTION_STRING, qemu:///system
54 storage_pool_name: !os_env STORAGE_POOL_NAME, default
55 stp: False
56 hpet: False
57 enable_acpi: true
58 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
59 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
60
61 network_pools:
62 admin: admin-pool01
63 provisioning: provisioning-pool01
64
65 l2_network_devices:
66 # Ironic management interface
67 admin:
68 address_pool: admin-pool01
69 dhcp: true
70 forward:
71 mode: nat
72
73 provisioning:
74 address_pool: provisioning-pool01
75 dhcp: false
76 forward:
77 mode: !os_env MAAS_PXE_IFACE_MODE, bridge
78 parent_iface:
79 phys_dev: !os_env MAAS_PXE_IFACE
80
81 group_volumes:
82 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
83 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
84 format: qcow2
85 - name: cfg01_day01_image # Pre-configured day01 image
86 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
87 format: qcow2
88 - name: mcp_ubuntu_1604_image # Pre-configured image for control plane
89 source_image: !os_env MCP_IMAGE_PATH1604
90 format: qcow2
91
92 nodes:
93 - name: {{ HOSTNAME_CFG01 }}
94 role: salt_master
95 params:
96 vcpu: !os_env SLAVE_NODE_CPU, 4
97 memory: !os_env SLAVE_NODE_MEMORY, 16384
98 boot:
99 - hd
100 cloud_init_volume_name: iso
101 cloud_init_iface_up: ens3
102 volumes:
103 - name: system
104 capacity: !os_env NODE_VOLUME_SIZE, 180
105 backing_store: cfg01_day01_image
106 format: qcow2
107 - name: iso # Volume with name 'iso' will be used
108 # for store image with cloud-init metadata.
109 capacity: 1
110 format: raw
111 device: cdrom
112 bus: ide
113 cloudinit_meta_data: *cloudinit_meta_data
114 cloudinit_user_data: *cloudinit_user_data_cfg01
115 interfaces:
116 - label: ens3
117 l2_network_device: admin
118 interface_model: *interface_model
119 mac_address: !os_env ETH1_MAC_ADDRESS_CFG01
120 - label: ens4
121 l2_network_device: provisioning
122 interface_model: *interface_model
123
124 network_config:
125 ens3:
126 networks:
127 - admin
128 ens4:
129 networks:
130 - provisioning