modified to use /srv instead of /dev/sdb for ceph.
[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         access: internal-api
7         shared-db: internal-api
8 {% endif %}
9       options:
10 {% if os.ha.mode == 'ha' %}
11         innodb-buffer-pool-size: 1G
12 {% else %}
13         innodb-buffer-pool-size: 1G
14 {% endif %}
15         max-connections: 4000
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 {% if os.network.ipv6 %}
22         prefer-ipv6: {{ os.network.ipv6 }}
23 {% endif %}
24 {% if os.ha.mode == 'ha' %}
25         vip: {{ opnfv.vip.mysql }}
26 {% endif %}
27         min-cluster-size: {{ unit_qty() }}
28       to:
29 {% for unit_id in to_select() %}
30         - "lxd:nodes/{{ unit_id }}"
31 {% endfor %}