Page MenuHomeDevCentral

D1441.id3700.diff
No OneTemporary

D1441.id3700.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/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

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)

Event Timeline