Parameterize database connection settings
So that we can have non-local (e.g., Trove based) databases, and for general downstream flexibility, allow the database server hostname, database name and database username to be passed into this module by the caller. Change-Id: I26a03e2ce9a6bf8bcd6acbad9e8eaaa98e0f26ab
This commit is contained in:
parent
c4044a9766
commit
e91131f664
|
@ -15,6 +15,9 @@ class mediawiki(
|
||||||
$wg_recaptchapublickey = undef,
|
$wg_recaptchapublickey = undef,
|
||||||
$wg_recaptchaprivatekey = undef,
|
$wg_recaptchaprivatekey = undef,
|
||||||
$wg_googleanalyticsaccount = undef,
|
$wg_googleanalyticsaccount = undef,
|
||||||
|
$wg_dbserver = 'localhost',
|
||||||
|
$wg_dbname = 'openstack_wiki',
|
||||||
|
$wg_dbuser = 'wikiuser',
|
||||||
$wg_dbpassword = undef,
|
$wg_dbpassword = undef,
|
||||||
$wg_secretkey = undef,
|
$wg_secretkey = undef,
|
||||||
$wg_upgradekey = undef,
|
$wg_upgradekey = undef,
|
||||||
|
|
|
@ -39,9 +39,9 @@ $wgEmailAuthentication = true;
|
||||||
|
|
||||||
## Database settings
|
## Database settings
|
||||||
$wgDBtype = "mysql";
|
$wgDBtype = "mysql";
|
||||||
$wgDBserver = "localhost";
|
$wgDBserver = "<%= @wg_dbserver %>";
|
||||||
$wgDBname = "openstack_wiki";
|
$wgDBname = "<%= @wg_dbname %>";
|
||||||
$wgDBuser = "wikiuser";
|
$wgDBuser = "<%= @wg_dbuser %>";
|
||||||
$wgDBpassword = "<%= @wg_dbpassword %>";
|
$wgDBpassword = "<%= @wg_dbpassword %>";
|
||||||
|
|
||||||
# MySQL specific settings
|
# MySQL specific settings
|
||||||
|
|
Loading…
Reference in New Issue