summaryrefslogtreecommitdiffstats
path: root/mcp/reclass/classes/cluster/mcp-iec-noha/infra/init.yml.j2
blob: 1b68b6c4488b24bf96ffa6ad0ddbe0223fe825e9 (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
##############################################################################
# Copyright (c) 2019 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:
  - cluster.mcp-common-noha.infra
parameters:
  _param:
    cluster_name: mcp-iec-noha
    infra_kvm_node01_hostname: kvm01
    infra_kvm_node02_hostname: kvm02
    infra_kvm_node03_hostname: kvm03
    akraino_iec_node01_hostname: iec01
    akraino_iec_node02_hostname: iec02
    akraino_iec_node03_hostname: iec03
{%- if '-vcp-' in conf.MCP_DEPLOY_SCENARIO %}
  linux:
    network:
      host:
{%- for i in range(1, 4) %}
        kvm0{{ i }}:
          address: ${_param:opnfv_infra_kvm_node0{{ i }}_address}
          names:
            - ${_param:infra_kvm_node0{{ i }}_hostname}
            - ${_param:infra_kvm_node0{{ i }}_hostname}.${_param:cluster_domain}
{%- endfor %}
{%- endif %}