c3e79e5245fe6531862380847f0e965166b34c12
[fuel.git] / mcp / reclass / classes / cluster / mcp-odl-noha / openstack / compute.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 classes:
11   - service.neutron.compute.single
12   - service.neutron.compute.opendaylight.single
13 {%- if conf.MCP_DPDK_MODE %}
14   - system.nova.compute.nfv.hugepages
15   - system.neutron.compute.nfv.dpdk
16 {%- endif %}
17   - cluster.mcp-common-noha.openstack_compute
18   - cluster.mcp-odl-noha
19 parameters:
20   linux:
21     network:
22       interface:
23 {%- if conf.MCP_DPDK_MODE %}
24         dpdk0:
25           name: ${_param:dpdk0_name}
26           pci: ${_param:dpdk0_pci}
27           driver: ${_param:dpdk0_driver}
28           enabled: true
29           bridge: br-prv
30           type: dpdk_ovs_port
31           n_rxq: ${_param:dpdk0_n_rxq}
32         br-prv:
33           enabled: true
34           type: dpdk_ovs_bridge
35           proto: static
36           address: ${_param:tenant_address}
37           netmask: ${_param:opnfv_net_private_mask}
38         tenant_interface:
39           type: dpdk  # Not a meaningful type, just match 'dpdk' for filtering
40 {%- endif %}
41         external_interface:
42           enabled: true
43           type: eth
44           name: ${_param:external_interface}
45           mtu: ${_param:interface_mtu}
46           proto: manual
47         br-mesh:
48           enabled: true
49           type: bridge
50           proto: static
51           address: ${_param:tenant_address}
52           netmask: ${_param:opnfv_net_private_mask}
53           use_interfaces:
54             - ${_param:tenant_interface}
55         br-floating:
56           enabled: true
57           type: ovs_bridge
58           mtu: ${_param:interface_mtu}
59         float-to-ex:
60           enabled: true
61           type: ovs_port
62           mtu: ${_param:interface_mtu}
63           bridge: br-floating
64         br-ex:
65           enabled: true
66           type: bridge
67           mtu: ${_param:interface_mtu}
68           address: ${_param:external_address}
69           netmask: ${_param:opnfv_net_public_mask}
70           use_interfaces:
71             - ${_param:external_interface}
72           use_ovs_ports:
73             - float-to-ex
74           gateway: ${_param:opnfv_net_public_gw}
75           name_servers: {{ nm.dns_public }}