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