aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-02-26 20:33:35 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2018-02-26 20:33:35 +0100
commit9e31be4a459959ced8ca47f88360f63088775945 (patch)
tree71fdb3781f4a9c44e59bdba09bc1bb18b9b96a86 /ansible
parent41022b009d62f7da7914762548b25a02f61e42cb (diff)
downloadinfra-9e31be4a459959ced8ca47f88360f63088775945.tar.gz
infra-9e31be4a459959ced8ca47f88360f63088775945.tar.bz2
infra-9e31be4a459959ced8ca47f88360f63088775945.tar.xz
infra-9e31be4a459959ced8ca47f88360f63088775945.zip
wip
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/mw-backend/templates/etc/mediawiki/LocalSettings.php.j217
-rw-r--r--ansible/secrets.yml18
2 files changed, 25 insertions, 10 deletions
diff --git a/ansible/roles/mw-backend/templates/etc/mediawiki/LocalSettings.php.j2 b/ansible/roles/mw-backend/templates/etc/mediawiki/LocalSettings.php.j2
index 999f64e..eb98896 100644
--- a/ansible/roles/mw-backend/templates/etc/mediawiki/LocalSettings.php.j2
+++ b/ansible/roles/mw-backend/templates/etc/mediawiki/LocalSettings.php.j2
@@ -87,7 +87,7 @@ $wgShellLocale = "en_US.utf8";
# Site language code, should be one of the list in ./languages/data/Names.php
$wgLanguageCode = "en";
-$wgSecretKey = "275b35aba77711c862ef77f85fd4f5e6c98133edead6af6e5374fee7cba8f0df";
+$wgSecretKey = "{{ mediawiki_secrets.secret_key }}";
# Changing this will log out all existing sessions.
$wgAuthenticationTokenVersion = "1";
@@ -156,8 +156,19 @@ $wgFooterIcons['poweredby']['debian'] = [
# Add more configuration options below.
$wgUseCategoryBrowser = true;
-# https://www.mediawiki.org/wiki/Manual:$wgSMTP
-$wgSMTP = array('host' => '10.0.3.1', 'auth' => false);
+
+// Define constants for my additional namespaces.
+define("NS_CHIP", 3000); // This MUST be even.
+define("NS_CHIP_TALK", 3001); // This MUST be the following odd integer.
enableSemantics( 'trygvis.io' );
$smwgShowFactbox = SMW_FACTBOX_NONEMPTY;
+
+// Add "Chip" namespace
+$wgExtraNamespaces[NS_CHIP] = "Chip";
+$wgExtraNamespaces[NS_CHIP_TALK] = "Chip_talk"; // Note underscores in the namespace name.
+$wgContentNamespaces[] = NS_CHIP;
+$smwgNamespacesWithSemanticLinks[NS_CHIP] = true;
+
+# https://www.mediawiki.org/wiki/Manual:$wgSMTP
+$wgSMTP = array('host' => '10.0.3.1', 'auth' => false);
diff --git a/ansible/secrets.yml b/ansible/secrets.yml
index e9350b8..66268d4 100644
--- a/ansible/secrets.yml
+++ b/ansible/secrets.yml
@@ -1,8 +1,12 @@
$ANSIBLE_VAULT;1.1;AES256
-38343733333238303264656336313538633066346564646536383735313339383531386237663365
-6631623430383634363135616262653430326234616531390a343463303836383038353239376461
-63393233666438306634613366306363383934343934333537363932303235356234643035343065
-3863313664383437660a383761613566396536363339626532636332343539353639643336366662
-37666561376566613936353061343234376535633264353962383232616666666438396435363438
-66376461306532323333336638653339663361616437353538633538626561316535363636623939
-323934376164626335386463363836356661
+38666438656330623934626438306434326239326264613465336665346630663564643939393938
+3633356531623065363432336634373037613161393465330a393761613838666135376362643331
+63636534336133613035633835343030396466343866373131643330613831623931343639663337
+6134353932326462310a383536646533396339316163383734316432633933646164323535623330
+34643962343732623930386466353631623230633531336630623461343935636266393763613264
+39306638356464346339663166306438636234616331383964656538623362353332663662636136
+64633463383933346566613161303562323939303665316164366638313065353739613431356164
+64613661303239313638396231323635653136366531666233613932353133353965653130373762
+38303839346439653662653533363436353436663637633464656163343636396162326331643166
+31363164346361333966323666633365353666373035643333366539623039656131306363396261
+353935653035633035626436623862353062