added ssl support based on default.
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / mysql.yaml
1     mysql:
2       charm: "./{{ ubuntu.release }}/percona-cluster"
3       num_units: {{ unit_qty() }}
4 {% if os.service.bindings %}
5       bindings:
6         "": *oam-space
7         cluster: *internal-space
8         shared-db: *internal-space
9 {% endif %}
10       options:
11         innodb-buffer-pool-size: 256M
12         max-connections: 4000
13         #use-https: "yes"
14         #https-service-endpoints: "True"
15         #performance-schema: true
16         #source: "deb http://repo.percona.com/apt xenial main"
17         #key: "8507EFA5"
18         root-password: {{ get_password('mysql_root') }}
19         sst-password: {{ get_password('mysql_sst') }}
20         sst-method: rsync
21         wait-timeout: 180
22 {% if os.network.ipv6 %}
23         prefer-ipv6: {{ os.network.ipv6 }}
24 {% endif %}
25 {% if os.ha.mode == 'ha' %}
26         vip: *mysql-vip
27 {% endif %}
28         min-cluster-size: {{ unit_qty() }}
29       to:
30 {% for unit_id in to_select() %}
31         - "lxd:nodes/{{ unit_id }}"
32 {% endfor %}