Puppet module for MediaWiki
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
698 B

# Class: mediawiki::app
#
class mediawiki::app ($revision = 'origin/REL1_28'){
vcsrepo { '/srv/mediawiki/w':
ensure => present,
provider => git,
source => 'https://gerrit.wikimedia.org/r/mediawiki/core.git',
revision => $revision,
}
exec { 'fetch_external_libraries' :
# https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries
# note that the files this creates are tracked in .gitignore
command => '/usr/bin/composer update --no-dev',
cwd => '/srv/mediawiki/w',
refreshonly => true,
require => Class['mediawiki::php'],
subscribe => Vcsrepo['/srv/mediawiki/w'],
}
}
# vim:sw=2:ts=2:expandtab:textwidth=79