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