summaryrefslogtreecommitdiffstats
path: root/ci/bundle_tpl/mysql.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ci/bundle_tpl/mysql.yaml')
-rw-r--r--ci/bundle_tpl/mysql.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/ci/bundle_tpl/mysql.yaml b/ci/bundle_tpl/mysql.yaml
new file mode 100644
index 00000000..4835dfe6
--- /dev/null
+++ b/ci/bundle_tpl/mysql.yaml
@@ -0,0 +1,16 @@
+ mysql:
+ charm: "local:{{ ubuntu.release }}/percona-cluster"
+ num_units: {{ unit_qty() }}
+ options:
+ dataset-size: 2G
+ lp1366997-workaround: true
+ max-connections: 10000
+ root-password: {{ get_password('mysql_root') }}
+ sst-password: {{ get_password('mysql_sst') }}
+{% if os.ha.mode == 'ha' %}
+ vip: {{ opnfv.vip.mysql }}
+{% endif %}
+ to:
+{% for unit_id in to_select() %}
+ - "lxc:nodes={{ unit_id }}"
+{% endfor %}