From cf6f1a8b525dbd9244b6b765ebb78d98798fe957 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Oct 07 2020 19:13:41 +0000 Subject: mediawiki: in staging, fix the port and password Signed-off-by: Kevin Fenzi --- diff --git a/roles/mediawiki/templates/LocalSettings.php.fp.j2 b/roles/mediawiki/templates/LocalSettings.php.fp.j2 index dbecd93..f7f6e25 100644 --- a/roles/mediawiki/templates/LocalSettings.php.fp.j2 +++ b/roles/mediawiki/templates/LocalSettings.php.fp.j2 @@ -129,8 +129,13 @@ $wgDBtype = "mysql"; $wgDBserver = "db03"; $wgDBname = "fpo-mediawiki"; $wgDBuser = "fpo-mw-user"; +{% if env == "staging" %} +$wgDBpassword = "{{ stgfpoPassword }}"; +$wgDBport = "3306"; +{% else %} $wgDBpassword = "{{ fpoPassword }}"; $wgDBport = "5432"; +{% endif %} $wgDBprefix = "en_"; # MySQL table options to use during installation or update