summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundle_tpl/mysql.yaml
blob: 72d1311cce517b92f412d456e51876d1d2ced4e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
    mysql:
      charm: "./{{ ubuntu.release }}/percona-cluster"
      num_units: {{ unit_qty() }}
{% if os.service.bindings %}
      bindings:
        "": *oam-space
        cluster: *internal-space
        shared-db: *internal-space
{% endif %}
      options:
        innodb-buffer-pool-size: 256M
        max-connections: 4000
        #use-https: "yes"
        #https-service-endpoints: "True"
        #performance-schema: true
        #source: "deb http://repo.percona.com/apt xenial main"
        #key: "8507EFA5"
        root-password: {{ get_password('mysql_root') }}
        sst-password: {{ get_password('mysql_sst') }}
        sst-method: rsync
        wait-timeout: 180
{% if os.network.ipv6 %}
        prefer-ipv6: {{ os.network.ipv6 }}
{% endif %}
{% if os.ha.mode == 'ha' %}
        vip: *mysql-vip
{% endif %}
        min-cluster-size: {{ unit_qty() }}
      to:
{% for unit_id in to_select() %}
        - "lxd:nodes/{{ unit_id }}"
{% endfor %}