[VCP VMs] AArch64: Switch seeding back to qemu-nbd
[fuel.git] / mcp / reclass / classes / cluster / mcp-odl-ha / infra / kvm.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 {%- if conf.MCP_VCP %}
11 # NOTE(armband): we don't want to pull in salt.control for novcp
12 classes:
13   - cluster.mcp-common-ha.infra.kvm
14   - cluster.mcp-odl-ha.infra
15 parameters:
16   salt:
17     control:
18       size:  # RAM 4096,8192,16384,32768,65536
19         # Default production sizing
20         opendaylight.server:
21           cpu: 4
22           ram: 8192
23           disk_profile: small
24           net_profile: default
25       cluster:
26         internal:
27           node:
28   {%- for i in range(1, 4) %}
29             odl0{{ i }}:
30               name: ${_param:opendaylight_server_node0{{ i }}_hostname}
31               provider: ${_param:infra_kvm_node0{{ i }}_hostname}.${_param:cluster_domain}
32               image: ${_param:salt_control_xenial_image}
33               size: opendaylight.server
34     {%- if conf.nodes[nm.ctl01.idx].node.arch == 'aarch64' %}
35               machine: virt
36               cpu_mode: host-passthrough
37               loader:
38                 readonly: 'yes'
39                 type: pflash
40                 path: /usr/share/AAVMF/AAVMF_CODE.fd
41     {%- endif %}
42   {%- endfor %}
43 {%- endif %}