2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

enhancement: provision to pass mariadb version

This commit is contained in:
Saurabh 2019-05-07 08:17:25 +05:30
parent 3dbb412e3c
commit 8126143815
2 changed files with 9 additions and 4 deletions

View File

@ -14,9 +14,16 @@ def install_prerequisites():
@click.command('mariadb')
@click.option('--mysql_root_password')
def install_maridb(mysql_root_password=''):
@click.option('--version', default="10.2")
def install_maridb(mysql_root_password='', version=''):
if mysql_root_password:
extra_vars.update({"mysql_root_password": mysql_root_password})
extra_vars.update({
"mysql_root_password": mysql_root_password,
})
extra_vars.update({
"mariadb_version": version
})
run_playbook('site.yml', extra_vars=extra_vars, tag='mariadb')

View File

@ -1,6 +1,4 @@
---
mariadb_version: 10.2
mysql_conf_tpl: change_me
mysql_conf_file: settings.cnf