mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 00:06:36 +00:00
Merge pull request #798 from saurabh6790/mariadb_version
enhancement: provision to pass mariadb version
This commit is contained in:
commit
d39effc2f1
@ -14,9 +14,16 @@ def install_prerequisites():
|
|||||||
|
|
||||||
@click.command('mariadb')
|
@click.command('mariadb')
|
||||||
@click.option('--mysql_root_password')
|
@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:
|
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')
|
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_tpl: change_me
|
||||||
mysql_conf_file: settings.cnf
|
mysql_conf_file: settings.cnf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user