Page MenuHomeDevCentral

D1437.diff
No OneTemporary

D1437.diff

diff --git a/roles/saas-mediawiki/init.sls b/pillar/saas/mediawiki.sls
copy from roles/saas-mediawiki/init.sls
copy to pillar/saas/mediawiki.sls
--- a/roles/saas-mediawiki/init.sls
+++ b/pillar/saas/mediawiki.sls
@@ -6,5 +6,10 @@
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
-include:
- - .account
+mediawiki_extensions:
+ - Cite
+
+mediawiki_skins:
+ - MonoBook
+ - Timeless
+ - Vector
diff --git a/pillar/top.sls b/pillar/top.sls
--- a/pillar/top.sls
+++ b/pillar/top.sls
@@ -21,6 +21,7 @@
- paas.docker
ysul:
- devserver.repos
+ - saas.mediawiki
- viperserv.bots
- viperserv.fantoir
- webserver.labs
diff --git a/roles/saas-mediawiki/init.sls b/roles/saas-mediawiki/init.sls
--- a/roles/saas-mediawiki/init.sls
+++ b/roles/saas-mediawiki/init.sls
@@ -8,3 +8,4 @@
include:
- .account
+ - .mediawiki
diff --git a/roles/saas-mediawiki/mediawiki/init.sls b/roles/saas-mediawiki/mediawiki/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/saas-mediawiki/mediawiki/init.sls
@@ -0,0 +1,50 @@
+# -------------------------------------------------------------
+# Salt — MediaWiki farm
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-03-16
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Base folder
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/srv/mediawiki:
+ file.directory:
+ - user: mediawiki
+ - group: mediawiki
+ - mode: 711
+
+# -------------------------------------------------------------
+# MediaWiki core
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+mediawiki_core_repository:
+ git.latest:
+ - name: https://gerrit.wikimedia.org/r/p/mediawiki/core.git
+ - target: /srv/mediawiki
+ - update_head: False
+ - user: mediawiki
+
+mediawiki_core_vendor:
+ cmd.run:
+ - name: composer update --no-dev
+ - cwd: /srv/mediawiki
+ - runas: mediawiki
+ - creates: /srv/mediawiki/vendor
+
+# -------------------------------------------------------------
+# MediaWiki extensions and skins
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{% for type in ['extensions', 'skins'] %}
+{% for item in salt['pillar.get']('mediawiki_' + type, []) %}
+mediawiki_{{ type }}_repository_{{ item }}:
+ git.latest:
+ - name: https://gerrit.wikimedia.org/r/p/mediawiki/{{ type }}/{{ item }}.git
+ - target: /srv/mediawiki/{{ type }}/{{ item }}
+ - update_head: False
+ - user: mediawiki
+{% endfor %}
+{% endfor %}

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 28, 22:37 (22 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2270114
Default Alt Text
D1437.diff (2 KB)

Event Timeline