Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3773607
D1441.id3700.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.id3700.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/roles/saas-mediawiki/mediawiki/files/LocalSettings.php b/roles/saas-mediawiki/mediawiki/files/LocalSettings.php
new file mode 100644
--- /dev/null
+++ b/roles/saas-mediawiki/mediawiki/files/LocalSettings.php
@@ -0,0 +1,20 @@
+<?php
+
+# -------------------------------------------------------------
+# Salt — MediaWiki farm
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-03-17
+# Description: Calls saas-mediawiki configuration directory
+# License: Trivial work, not eligible to copyright
+# Source file: roles/saas-mediawiki/mediawiki/init.sls
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+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, 07:50 (19 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2262173
Default Alt Text
D1441.id3700.diff (1 KB)
Attached To
Mode
D1441: Link to saas-mediawiki configuration
Attached
Detach File
Event Timeline
Log In to Comment