Enforce static configuration instead of DHCP
[fuel.git] / mcp / reclass / classes / cluster / mcp-ovn-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.ovn.single
12   - cluster.mcp-common-noha.openstack_compute
13   - cluster.mcp-ovn-noha
14 parameters:
15   neutron:
16     compute:
17       controller_vip: ${_param:cluster_local_address}
18   linux:
19     network:
20       interface:
21         external_interface:
22           enabled: true
23           name: ${_param:external_interface}
24           mtu: ${_param:interface_mtu}
25           proto: manual
26           type: eth
27         br-mesh:
28           enabled: true
29           type: bridge
30           proto: static
31           address: ${_param:tenant_address}
32           netmask: ${_param:opnfv_net_private_mask}
33           use_interfaces:
34             - ${_param:tenant_interface}
35         br-floating:
36           enabled: true
37           type: ovs_bridge
38           mtu: ${_param:interface_mtu}
39         float-to-ex:
40           enabled: true
41           type: ovs_port
42           mtu: ${_param:interface_mtu}
43           bridge: br-floating
44         br-ex:
45           enabled: true
46           type: bridge
47           mtu: ${_param:interface_mtu}
48           address: ${_param:external_address}
49           netmask: ${_param:opnfv_net_public_mask}
50           use_interfaces:
51             - ${_param:external_interface}
52           use_ovs_ports:
53             - float-to-ex
54           gateway: ${_param:opnfv_net_public_gw}
55           name_servers: {{ nm.dns_public }}