Get back to salt 2016.11
[fuel.git] / mcp / reclass / classes / cluster / mcp-common-noha / 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 {#- NOTE: br-{mgmt,ctl} are cross-referenced, careful when changing names #}
9 {%- import 'net_map.j2' as nm with context %}
10 ---
11 parameters:
12   _param:
13     primary_interface: {{ nm.cmp001.nic_mgmt }}
14     tenant_interface: {{ nm.cmp001.nic_private }}
15     external_interface: {{ nm.cmp001.nic_public }}
16   linux:
17     network:
18       bridge: openvswitch
19       interface:
20         dhcp_int:
21           enabled: true
22           name: {{ nm.cmp001.nic_admin }}
23           proto: dhcp
24           type: eth
25           mtu: ${_param:interface_mtu}
26         primary_interface:
27           enabled: true
28           name: ${_param:primary_interface}
29           proto: manual
30           type: eth
31         tenant_interface:
32           enabled: true
33           name: ${_param:tenant_interface}
34           mtu: ${_param:interface_mtu}
35           proto: manual
36           type: eth
37         br-mgmt:
38           enabled: true
39           type: bridge
40           proto: static
41           address: ${_param:single_address}
42           netmask: 255.255.255.0
43           use_interfaces:
44             - ${_param:primary_interface}