Merge "[ha] Fix ovn-ha scenario"
[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             odl01:
29               name: ${_param:opendaylight_server_node01_hostname}
30               provider: ${_param:infra_kvm_node02_hostname}.${_param:cluster_domain}
31               image: ${_param:salt_control_xenial_image}
32               size: opendaylight.server
33 {%- if conf.nodes[nm.ctl01.idx].node.arch == 'aarch64' %}
34               machine: virt
35               cpu_mode: host-passthrough
36               loader:
37                 readonly: 'yes'
38                 type: pflash
39                 path: /usr/share/AAVMF/AAVMF_CODE.fd
40 {%- endif %}
41 {%- endif %}