Page MenuHomeDevCentral

D1445.diff
No OneTemporary

D1445.diff

diff --git a/pillar/saas/mediawiki.sls b/pillar/saas/mediawiki.sls
--- a/pillar/saas/mediawiki.sls
+++ b/pillar/saas/mediawiki.sls
@@ -16,3 +16,16 @@
mediawiki_saas:
directory: /var/51-wwwroot/saas-mediawiki
+
+mediawiki_datastores:
+ ###
+ ### Nasqueron
+ ###
+ - agora.nasqueron.org
+
+ ###
+ ### Other wikis hosted on the Nasqueron servers
+ ###
+ - arsmagica.espace-win.org
+ - utopia.espace-win.org
+ - www.wolfplex.org
diff --git a/roles/saas-mediawiki/data/init.sls b/roles/saas-mediawiki/data/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/saas-mediawiki/data/init.sls
@@ -0,0 +1,28 @@
+# -------------------------------------------------------------
+# Salt — MediaWiki farm
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-03-19
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+/var/dataroot:
+ file.directory
+
+{% for store in pillar['mediawiki_datastores'] %}
+
+# $wgUploadDirectory
+/var/dataroot/{{ store }}/images:
+ file.directory:
+ - user: mediawiki
+ - group: mediawiki
+ - makedirs: True
+
+# $wgCacheDirectory
+/var/cache/mediawiki/{{ store }}:
+ file.directory:
+ - user: mediawiki
+ - group: mediawiki
+ - makedirs: True
+
+{% endfor %}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 04:24 (21 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2261810
Default Alt Text
D1445.diff (1 KB)

Event Timeline