cmodfiied to add juju 2.0 support.
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / nova-compute.yaml
1     nova-compute:
2       charm: "./{{ 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         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
14         enable-live-migration: true
15         enable-resize: true
16         migration-auth-type: ssh
17 {% if os.beta.public_api %}
18         use-internal-endpoints: true
19 {% endif %}
20 {% if os.network.ipv6 %}
21         prefer-ipv6: {{ os.network.ipv6 }}
22 {% endif %}
23 {% if opnfv.storage_dict.ceph is defined %}
24         ceph-osd-replication-count: {{ unit_ceph_qty() }}
25 {% endif %}
26 {% if os.beta.huge_pages %}
27         hugepages: "50%"
28 {% endif %}
29 {% if os.lxd %}
30         virt-type: lxd
31 {% endif %}
32       to:
33 {% if os.hyperconverged %}
34 {% for unit_id in range(1, opnfv.units) %}
35         - "nodes/{{ unit_id }}"
36 {% endfor %}
37 {% else %}
38 {% if os.ha.mode == 'ha' %}
39 {% for unit_id in range(0, opnfv.units - 3) %}
40         - "nodes-compute/{{ unit_id }}"
41 {% endfor %}
42 {% else %}
43 {% for unit_id in range(0, opnfv.units - 1) %}
44         - "nodes-compute/{{ unit_id }}"
45 {% endfor %}
46 {% endif %}
47 {% endif %}