Page MenuHomeDevCentral

D1445.id3702.diff
No OneTemporary

D1445.id3702.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
Sun, Nov 17, 18:17 (15 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2249668
Default Alt Text
D1445.id3702.diff (1 KB)

Event Timeline