Make MTU cluster-level configurable via IDF
[fuel.git] / mcp / reclass / classes / cluster / mcp-common-noha / openstack_control_pdf.yml.j2
1 ##############################################################################
2 # Copyright (c) 2018 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 {%- import 'net_map.j2' as nm with context %}
9 {%- import 'net_macros.j2' as ma with context %}
10 {#- Filter-out NIC duplicates by constructing a dict (used NICs only) #}
11 {%- set nics = { nm.ctl01.nic_mgmt: True, nm.ctl01.nic_public: True } %}
12 {%- set vlans = { nm.vlan_mgmt: nm.ctl01.nic_mgmt, nm.vlan_public: nm.ctl01.nic_public } %}
13 ---
14 parameters:
15   linux:
16     network:
17       interface:
18         pxe_admin_int:
19           enabled: true
20           name: {{ nm.ctl01.nic_admin }}
21           proto: static
22           type: eth
23           address: ${_param:pxe_admin_address}
24           netmask: ${_param:opnfv_net_admin_mask}
25           mtu: ${_param:interface_mtu}
26           noifupdown: true
27
28 {#- prevent duplicates for tagged mgmt on the same physical interface as PXE/admin #}
29 {%- if nm.ctl01.nic_admin in nics %}
30   {%- do nics.pop(nm.ctl01.nic_admin) %}
31 {%- endif %}
32
33 {{ ma.linux_network_interfaces_nic(nics) }}
34
35 {{ ma.linux_network_interfaces_vlan(vlans) }}
36
37         br-ctl:
38           enabled: true
39           type: bridge
40           proto: static
41           address: ${_param:single_address}
42           netmask: ${_param:opnfv_net_mgmt_mask}
43           noifupdown: true
44           use_interfaces:
45             - {{ ma.interface_str(nm.ctl01.nic_mgmt, nm.vlan_mgmt) }}
46         br-ext:
47           enabled: true
48           type: bridge
49           proto: static
50           address: ${_param:cluster_public_host}
51           netmask: ${_param:opnfv_net_public_mask}
52           gateway: ${_param:opnfv_net_public_gw}
53           name_servers: {{ nm.dns_public }}
54           use_interfaces:
55             - {{ ma.interface_str(nm.ctl01.nic_public, nm.vlan_public) }}
56           noifupdown: true