cb4c233cddbd39b86787927b7715cfbc50fdd65c
[fuel.git] / mcp / reclass / classes / cluster / mcp-common-ha / openstack_interface_vcp_biport.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 ---
10 {%- if conf.MCP_VCP %}
11 classes:
12   - cluster.all-mcp-arch-common.opnfv.maas_proxy
13   - cluster.all-mcp-arch-common.opnfv.lab_proxy_pdf
14 parameters:
15   _param:
16     pxe_admin_interface: ${_param:opnfv_vcp_vm_primary_interface}
17     single_nic: ${_param:opnfv_vcp_vm_secondary_interface}
18   linux:
19     network:
20       interface:
21         pxe_admin:
22           enabled: true
23           type: eth
24           proto: static
25           name: ${_param:pxe_admin_interface}
26           address: ${_param:pxe_admin_address}
27           netmask: ${_param:opnfv_net_admin_mask}
28           gateway: {{ nm.net_admin_gw }}
29           name_servers:
30             - {{ nm.net_admin_gw }}
31           noifupdown: true
32         single:
33           enabled: true
34           type: eth
35           proto: static
36           name: ${_param:single_nic}
37           address: ${_param:single_address}
38           netmask: ${_param:opnfv_net_public_mask}
39 {%- endif %}