added option to choose the architecture of hyperconverged ot not.
[joid.git] / ci / config_tpl / bundle_tpl / nova-compute.yaml
1     nova-compute:
2       charm: "local:{{ ubuntu.release }}/nova-compute"
3 {% if os.hyperconverged %}
4       num_units: {{ opnfv.units - 1 }}
5 {% else %}
6 {% if os.ha.mode == 'ha' %}
7       num_units: {{ opnfv.units - 3 }}
8 {% else %}
9       num_units: {{ opnfv.units - 1 }}
10 {% endif %}
11 {% endif %}
12       options:
13         enable-live-migration: true
14         enable-resize: true
15         manage-neutron-plugin-legacy-mode: false
16         migration-auth-type: ssh
17 {% if os.beta.huge_pages %}
18         hugepages: "50%"
19 {% endif %}
20 {% if os.lxd %}
21         virt-type: lxd
22 {% endif %}
23       to:
24 {% if os.hyperconverged %}
25 {% for unit_id in range(1, opnfv.units) %}
26         - "nodes={{ unit_id }}"
27 {% endfor %}
28 {% else %}
29 {% if os.ha.mode == 'ha' %}
30 {% for unit_id in range(0, opnfv.units - 3) %}
31         - "nodes-compute={{ unit_id }}"
32 {% endfor %}
33 {% else %}
34 {% for unit_id in range(0, opnfv.units - 1) %}
35         - "nodes-compute={{ unit_id }}"
36 {% endfor %}
37 {% endif %}
38 {% endif %}