2 charm: "./{{ ubuntu.release }}/percona-cluster"
3 num_units: {{ unit_qty() }}
4 {% if os.service.bindings %}
7 cluster: *internal-space
8 shared-db: *internal-space
10 series: {{ ubuntu.release }}
12 innodb-buffer-pool-size: 256M
15 #https-service-endpoints: "True"
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') }}
23 {% if os.network.ipv6 %}
24 prefer-ipv6: {{ os.network.ipv6 }}
26 {% if os.ha.mode == 'ha' %}
29 min-cluster-size: {{ unit_qty() }}
31 {% for unit_id in to_select() %}
32 - "lxd:nodes/{{ unit_id }}"