Merge "Enable barbican itegration on compute nodes"
[fuel.git] / mcp / reclass / classes / cluster / mcp-common-ha / infra / kvm_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 {#- 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 } %}
14 ---
15 parameters:
16   _param:
17     interface_mtu: 1500
18   linux:
19     network:
20       interface:
21
22 {{ ma.linux_network_interfaces_nic(nics) }}
23
24 {{ ma.linux_network_interfaces_vlan(vlans) }}
25
26         br-mgmt:
27           enabled: true
28           proto: static
29           address: ${_param:pxe_admin_address}
30           netmask: ${_param:opnfv_net_admin_mask}
31 {%- if conf.MCP_VCP %}
32 {#- For NOVCP scenarios, kvm02 gateway will be added via kvm_novcp class #}
33           gateway: {{ nm.net_admin_gw }}
34           name_servers:
35             - {{ nm.net_admin_gw }}
36 {%- endif %}
37           type: bridge
38           use_interfaces:
39             - {{ ma.interface_str(nm.ctl01.nic_admin, nm.vlan_admin) }}
40           noifupdown: true
41         br-ctl:
42           enabled: true
43           type: bridge
44           proto: static
45           address: ${_param:single_address}
46           netmask: ${_param:opnfv_net_mgmt_mask}
47           use_interfaces:
48             - {{ ma.interface_str(nm.ctl01.nic_mgmt, nm.vlan_mgmt) }}
49           noifupdown: true
50 {#- For NOVCP scenarios, kvm{01,03} external gateway will be added via triport class #}
51         br-ex:
52           enabled: true
53           proto: manual
54           netmask: ${_param:opnfv_net_public_mask}
55           type: bridge
56           use_interfaces:
57             - {{ ma.interface_str(nm.ctl01.nic_public, nm.vlan_public) }}
58           noifupdown: true