Merge "[centos] Update altarch kernel URL"
[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 {%- import 'net_macros.j2' as ma with context %}
10 {%- set vlan_private_start = (nm.vlan_private | string).rsplit('-')[0] %}
11 ---
12 classes:
13   - service.neutron.compute.single
14   - service.neutron.compute.opendaylight.single
15 {%- if '-ovs-' in conf.MCP_DEPLOY_SCENARIO %}
16   - system.nova.compute.nfv.hugepages
17   - system.neutron.compute.nfv.dpdk
18 {%- endif %}
19   - cluster.mcp-common-noha.openstack_compute
20   - cluster.mcp-odl-noha
21 parameters:
22   linux:
23     network:
24       interface:
25 {%- if '-ovs-' in conf.MCP_DEPLOY_SCENARIO %}
26         dpdk0:
27           name: ${_param:dpdk0_name}
28           pci: ${_param:dpdk0_pci}
29           driver: ${_param:dpdk0_driver}
30           enabled: true
31           bridge: br-prv
32           type: dpdk_ovs_port
33           n_rxq: ${_param:dpdk0_n_rxq}
34           mtu: ${_param:interface_mtu}
35         br-prv:
36           enabled: true
37           type: dpdk_ovs_bridge
38           proto: static
39           address: ${_param:tenant_address}
40           netmask: ${_param:opnfv_net_private_mask}
41         {{ nm.cmp001.nic_private }}:
42           type: dpdk  # Not a meaningful type, just match 'dpdk' for filtering
43         {{ nm.cmp001.nic_public }}:
44           enabled: true
45           type: eth
46           mtu: ${_param:interface_mtu}
47           proto: manual
48         br-floating:
49           enabled: true
50           type: ovs_bridge
51         float-to-ex:
52           enabled: true
53           type: ovs_port
54           mtu: ${_param:interface_mtu}
55           bridge: br-floating
56           noifupdown: true
57         br-ex:
58           enabled: true
59           type: bridge
60           address: ${_param:external_address}
61           netmask: ${_param:opnfv_net_public_mask}
62           use_interfaces:
63             - {{ ma.interface_str(nm.cmp001.nic_public, nm.vlan_public) }}
64           use_ovs_ports:
65             - float-to-ex
66           gateway: ${_param:opnfv_net_public_gw}
67           name_servers: {{ nm.dns_public }}
68           noifupdown: true
69 {%- else %}
70         br-mesh:
71           enabled: true
72           type: bridge
73           proto: static
74           address: ${_param:tenant_address}
75           netmask: ${_param:opnfv_net_private_mask}
76           use_interfaces:
77             - {{ ma.interface_str(nm.cmp001.nic_private, vlan_private_start) }}
78         ovs_port_{{ nm.cmp001.nic_public }}:
79           enabled: true
80           name: {{ ma.interface_str(nm.cmp001.nic_public, nm.vlan_public) }}
81           mtu: ${_param:interface_mtu}
82           proto: manual
83           ovs_port_type: OVSPort
84           type: ovs_port
85           ovs_bridge: br-floating
86           bridge: br-floating
87         br-floating:
88           enabled: true
89           type: ovs_bridge
90           proto: static
91           address: ${_param:external_address}
92           netmask: ${_param:opnfv_net_public_mask}
93           use_interfaces:
94             - {{ ma.interface_str(nm.cmp001.nic_public, nm.vlan_public) }}
95           gateway: ${_param:opnfv_net_public_gw}
96           name_servers: {{ nm.dns_public }}
97           noifupdown: true
98 {%- endif %}