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:
parent
3dbb412e3c
commit
8126143815
@ -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')
|
||||
|
||||
|
@ -1,6 +1,4 @@
|
||||
---
|
||||
mariadb_version: 10.2
|
||||
|
||||
mysql_conf_tpl: change_me
|
||||
mysql_conf_file: settings.cnf
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user