1 ##############################################################################
2 # Copyright (c) 2019 Mirantis Inc., Enea AB and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 ##############################################################################
8 {#- NOTE: br-{mgmt,ctl} are cross-referenced, careful when changing names #}
9 {%- import 'net_map.j2' as nm with context %}
10 {%- import 'net_macros.j2' as ma with context %}
11 {#- Filter-out NIC duplicates by constructing a dict (used NICs only) #}
12 {%- set nics = { nm.ctl01.nic_admin: True, nm.ctl01.nic_mgmt: True, nm.ctl01.nic_public: True } %}
13 {%- set vlans = { nm.vlan_admin: nm.ctl01.nic_admin, nm.vlan_mgmt: nm.ctl01.nic_mgmt, nm.vlan_public: nm.ctl01.nic_public } %}
16 - system.salt.control.virt
17 - cluster.all-mcp-arch-common.opnfv.maas_proxy
18 - cluster.all-mcp-arch-common.opnfv.lab_proxy_pdf
19 - cluster.mcp-iec-noha.infra
22 linux_system_codename: xenial
27 {{ ma.linux_network_interfaces_nic(nics) }}
29 {{ ma.linux_network_interfaces_vlan(vlans) }}
34 address: ${_param:pxe_admin_address}
35 netmask: ${_param:opnfv_net_admin_mask}
36 gateway: {{ nm.net_admin_gw }}
38 - {{ nm.net_admin_gw }}
41 - {{ ma.interface_str(nm.ctl01.nic_admin, nm.vlan_admin) }}
47 address: ${_param:single_address}
48 netmask: ${_param:opnfv_net_mgmt_mask}
50 - {{ ma.interface_str(nm.ctl01.nic_mgmt, nm.vlan_mgmt) }}
55 netmask: ${_param:opnfv_net_public_mask}
58 - {{ ma.interface_str(nm.ctl01.nic_public, nm.vlan_public) }}
66 net.ipv4.ip_forward: 0
70 config_sys: /etc/default/libvirtd
71 unix_sock_group: libvirt
82 domain: ${_param:cluster_domain}
85 {%- for i in range(1, 4) %}
87 name: ${_param:akraino_iec_node0{{ i }}_hostname}
88 provider: ${_param:infra_kvm_node0{{ i }}_hostname}.${_param:cluster_domain}
90 image: ${_param:salt_control_xenial_image}
91 {%- if conf.nodes[nm.ctl01.idx].node.arch == 'aarch64' %}
93 cpu_mode: host-passthrough
97 path: /usr/share/AAVMF/AAVMF_CODE.fd