added ssl support based on default.
[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       options:
13         openstack-origin: *openstack-origin
14 {% if os.git_repo.origin_git %}
15         openstack-origin-git: "{{ os.git_repo.branch }}"
16 {% endif %}
17         region: *openstack-region
18 {% if os.api.ssl %}
19         ssl_ca: *ssl_ca
20         ssl_cert: *ssl_cert
21         ssl_key: *ssl_key
22         os-public-hostname: *hostname_keystone_public
23         os-internal-hostname: *hostname_keystone_public
24         os-admin-hostname: *hostname_keystone_public
25 {% endif %}
26 {% if os.network.ipv6 %}
27         prefer-ipv6: {{ os.network.ipv6 }}
28 {% endif %}
29 {% if os.api.worker_multiplier %}
30         worker-multiplier: *worker-multiplier
31 {% endif %}
32 {% if os.ha.mode == 'ha' %}
33         vip: *designate-vip
34 {% endif %}
35       to:
36 {% for unit_id in to_select() %}
37         - "lxd:nodes/{{ unit_id }}"
38 {% endfor %}
39     designate-bind:
40       charm: "./{{ ubuntu.release }}/designate-bind"
41       num_units: 2
42       bindings:
43         "": *internal-space
44       to:
45         - lxd:nodes/0
46         - lxd:nodes/1
47