adding bionic support.
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / designate.yaml
1     designate:
2       charm: "./{{ ubuntu.release }}/designate"
3       num_units: {{ unit_qty() }}
4 {% if os.service.bindings %}
5       bindings:
6         "": *oam-space
7         public: *public-space
8         admin: *admin-space
9         internal: *internal-space
10         shared-db: *internal-space
11 {% endif %}
12       series: {{ ubuntu.release }}
13       options:
14         openstack-origin: *openstack-origin
15 {% if os.git_repo.origin_git %}
16         openstack-origin-git: "{{ os.git_repo.branch }}"
17 {% endif %}
18         region: *openstack-region
19 {% if os.api.ssl %}
20         ssl_ca: *ssl_ca
21         ssl_cert: *ssl_cert
22         ssl_key: *ssl_key
23         os-public-hostname: *hostname_keystone_public
24         os-internal-hostname: *hostname_keystone_public
25         os-admin-hostname: *hostname_keystone_public
26 {% endif %}
27 {% if os.network.ipv6 %}
28         prefer-ipv6: {{ os.network.ipv6 }}
29 {% endif %}
30 {% if os.api.worker_multiplier %}
31         worker-multiplier: *worker-multiplier
32 {% endif %}
33 {% if os.ha.mode == 'ha' %}
34         vip: *designate-vip
35 {% endif %}
36       to:
37 {% for unit_id in to_select() %}
38         - "lxd:nodes/{{ unit_id }}"
39 {% endfor %}
40     designate-bind:
41       charm: "./{{ ubuntu.release }}/designate-bind"
42       num_units: 2
43       bindings:
44         "": *internal-space
45       series: {{ ubuntu.release }}
46       to:
47         - "lxd:nodes/0"
48         - "lxd:nodes/1"
49