Merge "[novcp] Add deploy argument `-N` (experimental)"
[fuel.git] / mcp / config / scenario / os-odl-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-pike-odl-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     - opendaylight
27     - openstack_ha
28     - networks
29 virtual:
30   nodes:
31     - cfg01
32 {%- if cluster.has_baremetal_nodes %}
33     - mas01
34 {%- endif %}
35 {#- Most likely, controllers will always have the same type and number (3) #}
36 {%- if conf.nodes[nm.ctl01.idx].node.type == 'virtual' %}
37     - kvm01
38     - kvm02
39     - kvm03
40 {%- endif %}
41 {#- Later, we might have mixed computes here, for hybrid multi-arch testing #}
42 {%- if conf.nodes[nm.cmp001.idx].node.type == 'virtual' %}
43     - cmp001
44     - cmp002
45 {%- endif %}
46   cfg01:
47     vcpus: 4
48     ram: 6144
49   # Below values are only used when nodes are defined in virtual.nodes above
50   mas01:
51     vcpus: 4
52     ram: 6144
53   # NOTE: We might need to add more RAM here
54   kvm01:
55     vcpus: 4
56     ram: 14336
57   kvm02:
58     vcpus: 4
59     ram: 14336
60   kvm03:
61     vcpus: 4
62     ram: 14336
63   cmp001:
64     vcpus: 4
65     ram: 8192
66   cmp002:
67     vcpus: 4
68     ram: 8192