[reclass] Move system.single class to common
[fuel.git] / mcp / reclass / classes / cluster / all-mcp-arch-common / 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 ---
9 classes:
10   - system.linux.system.single
11   - cluster.all-mcp-arch-common.opnfv
12 parameters:
13   _param:
14     salt_control_trusty_image: ''  # Dummy value, to keep reclass 1.5.2 happy
15     salt_control_xenial_image: salt://salt/files/control/images/base_image_opnfv_fuel_vcp.img
16
17     # VMs spawned on Foundation Node / Jump Host net ifaces (max 4)
18     # VCP VMs spawned on KVM Hosts net ifaces (max 3)
19     # NOTE(armband): Only x86 VCP VMs spawned via salt.control names differ
20
21 {%- if conf.MCP_JUMP_ARCH == 'aarch64' %}
22     opnfv_fn_vm_primary_interface: enp1s0
23     opnfv_fn_vm_secondary_interface: enp2s0
24     opnfv_fn_vm_tertiary_interface: enp3s0
25     opnfv_fn_vm_quaternary_interface: enp4s0
26
27     opnfv_vcp_vm_primary_interface: ${_param:opnfv_fn_vm_primary_interface}
28     opnfv_vcp_vm_secondary_interface: ${_param:opnfv_fn_vm_secondary_interface}
29     opnfv_vcp_vm_tertiary_interface: ${_param:opnfv_fn_vm_tertiary_interface}
30 {%- else %}
31     opnfv_fn_vm_primary_interface: ens3
32     opnfv_fn_vm_secondary_interface: ens4
33     opnfv_fn_vm_tertiary_interface: ens5
34     opnfv_fn_vm_quaternary_interface: ens6
35
36     opnfv_vcp_vm_primary_interface: ens2
37     opnfv_vcp_vm_secondary_interface: ens3
38     opnfv_vcp_vm_tertiary_interface: ens4
39 {%- endif %}
40
41     ntp_strata_host1: {{ conf.idf.fuel.network.ntp_strata_host1 or '1.pool.ntp.org' }}
42     ntp_strata_host2: {{ conf.idf.fuel.network.ntp_strata_host2 or '0.pool.ntp.org' }}