bf73c67547b2ae5157dc5ec8e746795e48f633fd
[joid.git] / ci / bundle_tpl / nova-compute.yaml
1     nova-compute:
2       charm: "local:{{ ubuntu.release }}/nova-compute"
3 {% if os.ha.mode == 'ha' %}
4       num_units: {{ opnfv.units - 1 }}
5 {% else %}
6       num_units: 1
7 {% endif %}
8       options:
9         enable-live-migration: true
10         enable-resize: true
11         manage-neutron-plugin-legacy-mode: false
12         migration-auth-type: ssh
13 {% if os.beta.huge_pages %}
14         hugepages: "50%"
15 {% endif %}
16 {% if os.lxd %}
17         virt-type: lxd
18 {% endif %}
19       to:
20 {% if os.ha.mode == 'ha' %}
21 {% for unit_id in range(1, opnfv.units) %}
22         - "nodes={{ unit_id }}"
23 {% endfor %}
24 {% else %}
25         - "nodes=1"
26 {% endif %}