2 charm: "./{{ ubuntu.release }}/percona-cluster"
3 num_units: {{ unit_qty() }}
4 {% if os.service.bindings %}
6 shared-db: internal-api
9 {% if os.ha.mode == 'ha' %}
10 innodb-buffer-pool-size: 10G
12 innodb-buffer-pool-size: 1G
15 root-password: {{ get_password('mysql_root') }}
16 sst-password: {{ get_password('mysql_sst') }}
17 {% if os.network.ipv6 %}
18 prefer-ipv6: {{ os.network.ipv6 }}
20 {% if os.ha.mode == 'ha' %}
21 vip: {{ opnfv.vip.mysql }}
23 min-cluster-size: {{ unit_qty() }}
25 {% for unit_id in to_select() %}
26 - "lxd:nodes/{{ unit_id }}"