Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3794785
D1437.id3677.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D1437.id3677.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 29, 00:26 (21 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2270114
Default Alt Text
D1437.id3677.diff (2 KB)
Attached To
Mode
D1437: Clone MediaWiki core, skins and extensions
Attached
Detach File
Event Timeline
Log In to Comment