aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/reclass/classes/cluster/all-mcp-arch-common/init.yml.j2
blob: 987c5eb2cde913de6aecf10d24b4c4191d9fb28d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
##############################################################################
# Copyright (c) 2018 Mirantis Inc., Enea AB and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
---
classes:
  - system.linux.system.single
  - cluster.all-mcp-arch-common.opnfv
parameters:
  _param:
    salt_control_trusty_image: ''  # Dummy value, to keep reclass 1.5.2 happy
    salt_control_xenial_image: salt://salt/files/control/images/base_image_opnfv_fuel_vcp.img

    # VMs spawned on Foundation Node / Jump Host net ifaces (max 4)
    # VCP VMs spawned on KVM Hosts net ifaces (max 3)
    # NOTE(armband): Only x86 VCP VMs spawned via salt.control names differ

{%- if conf.MCP_JUMP_ARCH == 'aarch64' %}
    opnfv_fn_vm_primary_interface: enp1s0
    opnfv_fn_vm_secondary_interface: enp2s0
    opnfv_fn_vm_tertiary_interface: enp3s0
    opnfv_fn_vm_quaternary_interface: enp4s0

    opnfv_vcp_vm_primary_interface: ${_param:opnfv_fn_vm_primary_interface}
    opnfv_vcp_vm_secondary_interface: ${_param:opnfv_fn_vm_secondary_interface}
    opnfv_vcp_vm_tertiary_interface: ${_param:opnfv_fn_vm_tertiary_interface}
{%- else %}
    opnfv_fn_vm_primary_interface: ens3
    opnfv_fn_vm_secondary_interface: ens4
    opnfv_fn_vm_tertiary_interface: ens5
    opnfv_fn_vm_quaternary_interface: ens6

    opnfv_vcp_vm_primary_interface: ens2
    opnfv_vcp_vm_secondary_interface: ens3
    opnfv_vcp_vm_tertiary_interface: ens4
{%- endif %}

    ntp_strata_host1: {{ conf.idf.fuel.network.ntp_strata_host1 or '1.pool.ntp.org' }}
    ntp_strata_host2: {{ conf.idf.fuel.network.ntp_strata_host2 or '0.pool.ntp.org' }}
list of virtual functions to exclude from network_device. The network_device in the mapping should appear in the physical_device_mappings list. type: comma_delimited_list default: "" NeutronSriovNumVFs: description: > Provide the list of VFs to be reserved for each SR-IOV interface. Format "<interface_name1>:<numvfs1>,<interface_name2>:<numvfs2>" Example "eth1:4096,eth2:128" type: comma_delimited_list default: "" resources: NeutronBase: type: ./neutron-base.yaml properties: ServiceNetMap: {get_param: ServiceNetMap} DefaultPasswords: {get_param: DefaultPasswords} EndpointMap: {get_param: EndpointMap} outputs: role_data: description: Role data for the Neutron SR-IOV nic agent service. value: service_name: neutron_sriov_agent config_settings: map_merge: - get_attr: [NeutronBase, role_data, config_settings] - neutron::agents::ml2::sriov::physical_device_mappings: {get_param: NeutronPhysicalDevMappings} neutron::agents::ml2::sriov::exclude_devices: {get_param: NeutronExcludeDevices} tripleo::host::sriov::number_of_vfs: {get_param: NeutronSriovNumVFs} step_config: | include ::tripleo::profile::base::neutron::sriov