[akraino] Add IEC K8-calico scenarios
[fuel.git] / mcp / reclass / classes / cluster / mcp-iec-noha / infra / init.yml.j2
1 ##############################################################################
2 # Copyright (c) 2019 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   - cluster.mcp-common-noha.infra
11 parameters:
12   _param:
13     cluster_name: mcp-iec-noha
14     infra_kvm_node01_hostname: kvm01
15     infra_kvm_node02_hostname: kvm02
16     infra_kvm_node03_hostname: kvm03
17     akraino_iec_node01_hostname: iec01
18     akraino_iec_node02_hostname: iec02
19     akraino_iec_node03_hostname: iec03
20 {%- if '-vcp-' in conf.MCP_DEPLOY_SCENARIO %}
21   linux:
22     network:
23       host:
24 {%- for i in range(1, 4) %}
25         kvm0{{ i }}:
26           address: ${_param:opnfv_infra_kvm_node0{{ i }}_address}
27           names:
28             - ${_param:infra_kvm_node0{{ i }}_hostname}
29             - ${_param:infra_kvm_node0{{ i }}_hostname}.${_param:cluster_domain}
30 {%- endfor %}
31 {%- endif %}