]> git.openstreetmap.org Git - chef.git/commitdiff
mediawiki: Add initial parsoid support for visualeditor
authorGrant Slater <git@firefishy.com>
Sat, 2 Jan 2016 08:49:37 +0000 (08:49 +0000)
committerGrant Slater <git@firefishy.com>
Sat, 2 Jan 2016 08:49:37 +0000 (08:49 +0000)
cookbooks/apt/recipes/default.rb
cookbooks/apt/templates/default/mediawiki.list.erb [new file with mode: 0644]
cookbooks/mediawiki/attributes/default.rb
cookbooks/mediawiki/recipes/default.rb

index 2fcc6fa7871b3559a4b5827c2c6c45d5c063a376..d086ab85bfae929d096f86b3f41fd677a47db670 100644 (file)
@@ -110,6 +110,12 @@ apt_source "postgresql" do
   key "ACCC4CF8"
 end
 
+apt_source "mediawiki" do
+  template "mediawiki.list.erb"
+  url "https://releases.wikimedia.org/debian"
+  key "664C383A3566A3481B942F007A322AC6E84AFDD2"
+end
+
 package "unattended-upgrades"
 
 auto_upgrades = if node[:apt][:unattended_upgrades][:enable]
diff --git a/cookbooks/apt/templates/default/mediawiki.list.erb b/cookbooks/apt/templates/default/mediawiki.list.erb
new file mode 100644 (file)
index 0000000..3d0062a
--- /dev/null
@@ -0,0 +1,4 @@
+# DO NOT EDIT - This file is being maintained by Chef
+
+deb <%= @url %> jessie-mediawiki main
+deb-src <%= @url %> jessie-mediawiki main
index 7fce6d78513283bdba1ea1a240c67ddf29409537..59838f9206df8dbd529d19798c47816d977ce825 100644 (file)
@@ -1,3 +1,6 @@
+# Add the mediawiki APT source
+default[:apt][:sources] = node[:apt][:sources] | ["mediawiki"]
+
 # Default to enabling the "wiki" role
 default[:accounts][:users][:wiki][:status] = :role
 
index 267c4f4b152b73382918f439ae065b5ca6a685cb..cadefe60c48efc250b98d3f959bb86aed616da74 100644 (file)
@@ -45,6 +45,10 @@ package "poppler-utils"
 # Mediawiki backup
 package "xz-utils"
 
+# Mediawiki packages for VisualEditor support
+package "curl"
+package "parsoid"
+
 link "/etc/php5/apache2/conf.d/20-wikidiff2.ini" do
   to "../../mods-available/wikidiff2.ini"
 end