Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3749705
D1445.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1445.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 17:17 (14 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2249668
Default Alt Text
D1445.diff (1 KB)
Attached To
Mode
D1445: Make MediaWiki directories
Attached
Detach File
Event Timeline
Log In to Comment