[IDF] infra VMs: Allow trunking mgmt network
[fuel.git] / mcp / reclass / classes / cluster / mcp-common-noha / infra / config.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   - system.mysql.client.single
12   - cluster.all-mcp-arch-common.infra.config_pdf
13 parameters:
14   _param:
15     openstack_control_node01_hostname: ctl01
16     reclass_config_master: ${_param:opnfv_infra_config_pxe_admin_address}
17     single_address: ${_param:opnfv_infra_config_address}
18     salt_master_host: 127.0.0.1
19     salt_minion_ca_host: ${linux:network:fqdn}
20   linux:
21     network:
22       interface:
23         mcpcontrol_int:
24           enabled: true
25           type: eth
26           proto: dhcp
27           name: ${_param:opnfv_fn_vm_primary_interface}
28         single_int:
29           enabled: true
30           name: ${_param:opnfv_fn_vm_secondary_interface}
31           type: eth
32 {%- if conf.idf.fuel.jumphost.get('trunks', {}).get('mgmt', False) and (nm.vlan_mgmt | int > 0) %}
33           proto: manual
34         single_int_vlan:
35           enabled: true
36           type: vlan
37           name: ${_param:opnfv_fn_vm_secondary_interface}.{{ nm.vlan_mgmt }}
38           use_interfaces:
39             - ${_param:opnfv_fn_vm_secondary_interface}
40 {%- endif %}
41           proto: static
42           address: ${_param:single_address}
43           netmask: ${_param:opnfv_net_mgmt_mask}
44         pxe_admin_int:
45           enabled: true
46           type: eth
47           proto: static
48           name: ${_param:opnfv_fn_vm_tertiary_interface}
49           address: ${_param:opnfv_infra_config_pxe_admin_address}
50           netmask: ${_param:opnfv_net_admin_mask}
51   salt:
52     master:
53       file_recv: true
54       worker_threads: 4
55       command_timeout: 20
56   reclass:
57     storage:
58       node:
59         openstack_control_node01:
60           name: ${_param:openstack_control_node01_hostname}
61           domain: ${_param:cluster_domain}
62           classes:
63             - cluster.${_param:cluster_name}.openstack.control
64           params:
65             linux_system_codename: xenial
66             salt_master_host: ${_param:reclass_config_master}
67             single_address: ${_param:openstack_control_node01_address}
68             pxe_admin_address: ${_param:opnfv_openstack_control_node01_pxe_admin_address}