docker build: Update saltstack repo URL, locale
[fuel.git] / mcp / reclass / classes / cluster / mcp-odl-noha / opendaylight / 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 } %}
12 {%- set vlans = { nm.vlan_mgmt: nm.ctl01.nic_mgmt } %}
13 {%- if '-bgpvpn-' in conf.MCP_DEPLOY_SCENARIO %}
14   {%- do nics.update({nm.ctl01.nic_public: True}) %}
15   {%- do vlans.update({nm.vlan_public: nm.ctl01.nic_public}) %}
16 {%- endif %}
17 ---
18 parameters:
19   linux:
20     network:
21       interface:
22         pxe_admin_int:
23           enabled: true
24           name: {{ nm.ctl01.nic_admin }}
25           proto: static
26           type: eth
27           address: ${_param:pxe_admin_address}
28           netmask: ${_param:opnfv_net_admin_mask}
29           mtu: ${_param:interface_mtu}
30           noifupdown: true
31           gateway: {{ nm.net_admin_gw }}
32           name_servers:
33             - {{ nm.net_admin_gw }}
34 {%- if '-bgpvpn-' in conf.MCP_DEPLOY_SCENARIO %}
35         br-ext:
36           enabled: true
37           type: bridge
38           proto: static
39           address: ${_param:opnfv_opendaylight_server_external_address}
40           netmask: ${_param:opnfv_net_public_mask}
41           mtu: ${_param:interface_mtu}
42           use_interfaces:
43             - {{ ma.interface_str(nm.ctl01.nic_public, nm.vlan_public) }}
44           noifupdown: true
45 {%- endif %}
46
47 {#- prevent duplicates for tagged mgmt on the same physical interface as PXE/admin #}
48 {%- if nm.ctl01.nic_admin in nics %}
49   {%- do nics.pop(nm.ctl01.nic_admin) %}
50 {%- endif %}
51
52 {{ ma.linux_network_interfaces_nic(nics) }}
53
54 {{ ma.linux_network_interfaces_vlan(vlans) }}
55
56         br-ctl:
57           enabled: true
58           type: bridge
59           proto: static
60           address: ${_param:single_address}
61           netmask: ${_param:opnfv_net_mgmt_mask}
62           use_interfaces:
63             - {{ ma.interface_str(nm.ctl01.nic_mgmt, nm.vlan_mgmt) }}