Gergő Tisza has uploaded a new change for review. https://gerrit.wikimedia.org/r/131429
Change subject: [WIP] Vagrant role for GWToolset ...................................................................... [WIP] Vagrant role for GWToolset Fails in the middle of the upload process. Not sure if this is a config issue or a genuine bug or I'm just using the interface wrong. Change-Id: I2a5bde31ee7a4317d6ec76bb3fe7b160d1d13bcf --- A puppet/manifests/roles/gwtoolset.pp A puppet/templates/gwtoolset-config.php.erb 2 files changed, 36 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/vagrant refs/changes/29/131429/1 diff --git a/puppet/manifests/roles/gwtoolset.pp b/puppet/manifests/roles/gwtoolset.pp new file mode 100644 index 0000000..2ce8c9c --- /dev/null +++ b/puppet/manifests/roles/gwtoolset.pp @@ -0,0 +1,20 @@ +# == Class: role::gwtoolset +# This role provisions the [GWToolset][1] extension, +# which does mass image and metadata uploading +# based on an XML description. +# +# [1] https://www.mediawiki.org/wiki/Extension:GWToolset +class role::gwtoolset { + include role::mediawiki + include role::multimedia + + php::ini { 'GWToolset': + settings => { + memory_limit => '256M', + } + } + + mediawiki::extension { 'GWToolset': + settings => template('gwtoolset-config.php.erb'), + } +} diff --git a/puppet/templates/gwtoolset-config.php.erb b/puppet/templates/gwtoolset-config.php.erb new file mode 100644 index 0000000..11dbabe --- /dev/null +++ b/puppet/templates/gwtoolset-config.php.erb @@ -0,0 +1,16 @@ +// https://www.mediawiki.org/wiki/Extension:GWToolset +$wgAllowCopyUploads = true; +$wgGroupPermissions['sysop']['gwtoolset'] = true; +$wgGroupPermissions['sysop']['upload_by_url'] = true; + +$wgFileBackends[] = array( + 'name' => 'gwtoolset-backend', + 'class' => 'FSFileBackend', + 'lockManager' => 'nullLockManager', + 'fileMode' => 0644, + 'basePath' => $IP . '/images/gwtoolset', +); + +$wgGWTFileBackend = 'gwtoolset-backend'; +$wgGWTFBMaxAge = '1 week'; + -- To view, visit https://gerrit.wikimedia.org/r/131429 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2a5bde31ee7a4317d6ec76bb3fe7b160d1d13bcf Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/vagrant Gerrit-Branch: master Gerrit-Owner: Gergő Tisza <gti...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits