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 {%- set cluster = {'has_virtual_nodes': False} %}
10 {%- for node in conf.nodes %}
11 {%- if not cluster.has_virtual_nodes and node.node.type == 'baremetal' %}
12 {%- do cluster.update({'has_baremetal_nodes': True}) %}
17 domain: mcp-pike-ovn-ha.local
19 {%- if cluster.has_baremetal_nodes %}
23 {%- if conf.MCP_VCP %}
24 - virtual_control_plane
31 {%- if cluster.has_baremetal_nodes %}
34 {#- Most likely, controllers will always have the same type and number (3) #}
35 {%- if conf.nodes[nm.ctl01.idx].node.type == 'virtual' %}
40 {#- Later, we might have mixed computes here, for hybrid multi-arch testing #}
41 {%- if conf.nodes[nm.cmp001.idx].node.type == 'virtual' %}
48 # Below values are only used when nodes are defined in virtual.nodes above
52 # NOTE: We might need to add more RAM here