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: 1G
13 innodb-buffer-pool-size: 1G
16 #performance-schema: true
17 #source: "deb http://repo.percona.com/apt xenial main"
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 }}
24 {% if os.ha.mode == 'ha' %}
25 vip: {{ opnfv.vip.mysql }}
27 min-cluster-size: {{ unit_qty() }}
29 {% for unit_id in to_select() %}
30 - "lxd:nodes/{{ unit_id }}"