273c9f8b0c055819105ae1c65ecca41e9defccfa
[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       series: {{ ubuntu.release }}
11       options:
12         innodb-buffer-pool-size: 256M
13         max-connections: 4000
14         #use-https: "yes"
15         #https-service-endpoints: "True"
16         #performance-schema: true
17         #source: "deb http://repo.percona.com/apt xenial main"
18         #key: "8507EFA5"
19         root-password: {{ get_password('mysql_root') }}
20         sst-password: {{ get_password('mysql_sst') }}
21         sst-method: rsync
22         wait-timeout: 180
23 {% if os.network.ipv6 %}
24         prefer-ipv6: {{ os.network.ipv6 }}
25 {% endif %}
26 {% if os.ha.mode == 'ha' %}
27         vip: *mysql-vip
28 {% endif %}
29         min-cluster-size: {{ unit_qty() }}
30       to:
31 {% for unit_id in to_select() %}
32         - "lxd:nodes/{{ unit_id }}"
33 {% endfor %}