54835ac4f060385b2c8b549ffc31d03f8942c96b
[fuel.git] / mcp / reclass / classes / cluster / mcp-ovs-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   - system.nova.compute.nfv.hugepages
15   - cluster.mcp-common-noha.openstack_compute
16   - cluster.mcp-ovs-noha
17 parameters:
18   neutron:
19     compute:
20       dhcp_agent_enabled: true
21       metadata_agent_enabled: true
22   linux:
23     network:
24       interface:
25         pxe_admin_int:
26           # For scenarios without public network on cmp, set admin gw
27           gateway: {{ nm.net_admin_gw }}
28           name_servers:
29             - {{ nm.net_admin_gw }}
30         br-mesh:
31           enabled: true
32           type: bridge
33           proto: static
34           address: ${_param:tenant_address}
35           netmask: ${_param:opnfv_net_private_mask}
36           use_interfaces:
37             - {{ ma.interface_str(nm.cmp001.nic_private, vlan_private_start) }}
38     system:
39       package:
40         cgroup-tools:
41           version: latest