Enforce static configuration instead of DHCP
[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           proto: static
33           address: ${_param:single_address}
34           netmask: ${_param:opnfv_net_mgmt_mask}
35         pxe_admin_int:
36           enabled: true
37           type: eth
38           proto: static
39           name: ${_param:opnfv_fn_vm_tertiary_interface}
40           address: ${_param:opnfv_infra_config_pxe_admin_address}
41           netmask: ${_param:opnfv_net_admin_mask}
42   salt:
43     master:
44       file_recv: true
45       worker_threads: 4
46       command_timeout: 20
47   reclass:
48     storage:
49       node:
50         openstack_control_node01:
51           name: ${_param:openstack_control_node01_hostname}
52           domain: ${_param:cluster_domain}
53           classes:
54             - cluster.${_param:cluster_name}.openstack.control
55           params:
56             linux_system_codename: xenial
57             salt_master_host: ${_param:reclass_config_master}
58             single_address: ${_param:openstack_control_node01_address}
59             pxe_admin_address: ${_param:opnfv_openstack_control_node01_pxe_admin_address}