Page MenuHomeDevCentral

D1445.id3701.diff
No OneTemporary

D1445.id3701.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,9 @@
mediawiki_saas:
directory: /var/51-wwwroot/saas-mediawiki
+
+mediawiki_datastores:
+ - agora.nasqueron.org
+ - 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,27 @@
+# -------------------------------------------------------------
+# 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
+
+{% endfor %}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 18:17 (15 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2249712
Default Alt Text
D1445.id3701.diff (1 KB)

Event Timeline