2 charm: "./{{ ubuntu.release }}/percona-cluster"
3 num_units: {{ unit_qty() }}
4 {% if os.service.bindings %}
7 shared-db: internal-api
10 {% if os.ha.mode == 'ha' %}
11 innodb-buffer-pool-size: 128M
14 innodb-buffer-pool-size: 1G
17 #performance-schema: true
18 #source: "deb http://repo.percona.com/apt xenial main"
20 root-password: {{ get_password('mysql_root') }}
21 sst-password: {{ get_password('mysql_sst') }}
22 {% if os.network.ipv6 %}
23 prefer-ipv6: {{ os.network.ipv6 }}
25 {% if os.ha.mode == 'ha' %}
26 vip: {{ opnfv.vip.mysql }}
28 min-cluster-size: {{ unit_qty() }}
30 {% for unit_id in to_select() %}
31 - "lxd:nodes/{{ unit_id }}"