a6a641c635900cbeaf2585679629af67f40e0a83
[fuel.git] / mcp / config / scenario / os-nosdn-nofeature-ha.yaml.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 {%- 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}) %}
13   {%- endif %}
14 {%- endfor %}
15 ---
16 cluster:
17   domain: mcp-ovs-ha.local
18   states:
19 {%- if cluster.has_baremetal_nodes %}
20     - maas
21     - baremetal_init
22 {%- endif %}
23 {%- if conf.MCP_VCP %}
24     - virtual_control_plane
25 {%- endif %}
26     - openstack_ha
27     - networks
28 virtual:
29   nodes:
30     - cfg01
31 {%- if cluster.has_baremetal_nodes %}
32     - mas01
33 {%- endif %}
34 {#- Most likely, controllers will always have the same type and number (3) #}
35 {%- if conf.nodes[nm.ctl01.idx].node.type == 'virtual' %}
36     - kvm01
37     - kvm02
38     - kvm03
39 {%- endif %}
40 {#- Later, we might have mixed computes here, for hybrid multi-arch testing #}
41 {%- if conf.nodes[nm.cmp001.idx].node.type == 'virtual' %}
42     - cmp001
43     - cmp002
44 {%- endif %}
45   cfg01:
46     vcpus: 4
47     ram: 6144
48   # Below values are only used when nodes are defined in virtual.nodes above
49   mas01:
50     vcpus: 4
51     ram: 6144
52   # NOTE: We might need to add more RAM here
53   kvm01:
54     vcpus: 4
55     ram: 14336
56   kvm02:
57     vcpus: 4
58     ram: 14336
59   kvm03:
60     vcpus: 4
61     ram: 14336
62   cmp001:
63     vcpus: 4
64     ram: 8192
65   cmp002:
66     vcpus: 4
67     ram: 8192