Merge "[odl/dpdk] Set pubilic bridge datapath_type=netdev"
[fuel.git] / mcp / reclass / classes / cluster / mcp-common-noha / infra / init.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   - cluster.all-mcp-arch-common
12 parameters:
13   _param:
14     cluster_domain: ${_param:cluster_name}.local
15     infra_maas_database_password: opnfv_secret
16     reclass_config_master: ${_param:opnfv_infra_config_pxe_admin_address}
17     infra_maas_node01_hostname: mas01
18     infra_maas_node01_address: ${_param:opnfv_infra_maas_node01_address}
19     infra_maas_node01_deploy_address: ${_param:opnfv_infra_maas_node01_deploy_address}
20   linux:
21     system:
22       apt:
23         config:
24           prefer_ipv4:
25             Acquire::ForceIPv4: true
26           allow_downgrades:
27             APT::Get::allow-downgrades: true
28     network:
29       host:
30         cfg01:
31           address: ${_param:opnfv_infra_config_address}
32           names:
33             - cfg01
34             - cfg01.${_param:cluster_domain}
35         cfg:
36           address: ${_param:opnfv_infra_config_address}
37           names:
38             - cfg
39             - cfg.${_param:cluster_domain}
40 {%- if nm.cluster.has_baremetal_nodes %}
41         mas01:
42           address: ${_param:infra_maas_node01_address}
43           names:
44             - ${_param:infra_maas_node01_hostname}
45             - ${_param:infra_maas_node01_hostname}.${_param:cluster_domain}
46 {%- endif %}