summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundle_tpl/mysql.yaml
blob: fdd732c48d8646e890eb9426664a01cd4a0aa00b (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
    mysql:
      charm: "./{{ ubuntu.release }}/percona-cluster"
      num_units: {{ unit_qty() }}
{% if os.service.bindings %}
      bindings:
        access: internal-api
        shared-db: internal-api
{% endif %}
      options:
{% if os.ha.mode == 'ha' %}
        innodb-buffer-pool-size: 10G
{% else %}
        innodb-buffer-pool-size: 1G
{% endif %}
        max-connections: 2000
        root-password: {{ get_password('mysql_root') }}
        sst-password: {{ get_password('mysql_sst') }}
{% if os.network.ipv6 %}
        prefer-ipv6: {{ os.network.ipv6 }}
{% endif %}
{% if os.ha.mode == 'ha' %}
        vip: {{ opnfv.vip.mysql }}
{% endif %}
        min-cluster-size: {{ unit_qty() }}
      to:
{% for unit_id in to_select() %}
        - "lxd:nodes/{{ unit_id }}"
{% endfor %}