[ha] Update OpenStack version to Queens
[fuel.git] / mcp / reclass / classes / cluster / mcp-ovs-ha / openstack / compute_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 {#- Filter-out NIC duplicates by constructing a dict (used NICs only) #}
10 {%- set nics = { nm.cmp001.nic_private: True } %}
11 {%- set vlan_private_start = (nm.vlan_private | string).rsplit('-')[0] %}
12 {%- set vlans = { vlan_private_start: nm.cmp001.nic_private } %}
13 ---
14 parameters:
15   linux:
16     network:
17       interface:
18 {%- for nic in nics %}
19         {{ nic }}:
20           enabled: true
21           type: eth
22     {%- if nic == nm.cmp001.nic_admin %}
23           proto: dhcp
24     {%- else %}
25           proto: manual
26     {%- endif %}
27           name: {{ nic }}
28 {%- endfor %}
29
30 {%- for vlan in vlans %}
31     {%- if vlan | int > 0 %}
32         {{ vlans[vlan] }}.{{ vlan }}:
33           enabled: true
34           proto: manual
35           type: vlan
36           name: {{ vlans[vlan] }}.{{ vlan }}
37           use_interfaces:
38             - {{ vlans[vlan] }}
39     {%- endif %}
40 {%- endfor %}
41
42         br-mesh:
43           enabled: true
44           type: bridge
45           address: ${_param:tenant_address}
46           netmask: 255.255.255.0
47           mtu: 1500
48           use_interfaces:
49             - {{ nm.cmp001.nic_private }}{% if vlan_private_start | int > 0 %}.{{ vlan_private_start }}{% endif %}