Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3773705
D1441.id3682.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
D1441.id3682.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
@@ -13,3 +13,6 @@
- MonoBook
- Timeless
- Vector
+
+mediawiki_saas:
+ directory: /var/51-wwwroot/saas-mediawiki
diff --git a/pillar/saas/mediawiki.sls b/roles/saas-mediawiki/mediawiki/files/LocalSettings.php
copy from pillar/saas/mediawiki.sls
copy to roles/saas-mediawiki/mediawiki/files/LocalSettings.php
--- a/pillar/saas/mediawiki.sls
+++ b/roles/saas-mediawiki/mediawiki/files/LocalSettings.php
@@ -1,15 +1,12 @@
+<?php
+
# -------------------------------------------------------------
# Salt — MediaWiki farm
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
-# Created: 2018-03-16
+# Created: 2018-03-17
+# Description: Calls saas-mediawiki configuration directory
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
-mediawiki_extensions:
- - Cite
-
-mediawiki_skins:
- - MonoBook
- - Timeless
- - Vector
+require '{{ directory }}/LocalSettings.php';
diff --git a/roles/saas-mediawiki/mediawiki/init.sls b/roles/saas-mediawiki/mediawiki/init.sls
--- a/roles/saas-mediawiki/mediawiki/init.sls
+++ b/roles/saas-mediawiki/mediawiki/init.sls
@@ -48,3 +48,17 @@
- user: mediawiki
{% endfor %}
{% endfor %}
+
+# -------------------------------------------------------------
+# MediaWiki configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/srv/mediawiki/LocalSettings.php:
+ file.managed:
+ - source: salt://roles/saas-mediawiki/mediawiki/files/LocalSettings.php
+ - user: mediawiki
+ - group: mediawiki
+ - mode: 644
+ - template: jinja
+ - context:
+ directory: {{ pillar['mediawiki_saas']['directory'] }}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 08:11 (19 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2262217
Default Alt Text
D1441.id3682.diff (1 KB)
Attached To
Mode
D1441: Link to saas-mediawiki configuration
Attached
Detach File
Event Timeline
Log In to Comment