Page MenuHomeDevCentral

D1441.id3682.diff
No OneTemporary

D1441.id3682.diff

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

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)

Event Timeline