cmodfiied to add juju 2.0 support.
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / mysql.yaml
1     mysql:
2       charm: "./{{ ubuntu.release }}/percona-cluster"
3       num_units: {{ unit_qty() }}
4       options:
5 {% if os.ha.mode == 'ha' %}
6         innodb-buffer-pool-size: 10G
7 {% else %}
8         innodb-buffer-pool-size: 1G
9 {% endif %}
10         max-connections: 20000
11         root-password: {{ get_password('mysql_root') }}
12         sst-password: {{ get_password('mysql_sst') }}
13 {% if os.network.ipv6 %}
14         prefer-ipv6: {{ os.network.ipv6 }}
15 {% endif %}
16 {% if os.ha.mode == 'ha' %}
17         vip: {{ opnfv.vip.mysql }}
18 {% endif %}
19         min-cluster-size: {{ unit_qty() }}
20       to:
21 {% for unit_id in to_select() %}
22         - "lxd:nodes/{{ unit_id }}"
23 {% endfor %}