diff --git a/modules/mediawiki/manifests/deploy.pp b/modules/mediawiki/manifests/deploy.pp index af875e1d78..d91f9d9879 100644 --- a/modules/mediawiki/manifests/deploy.pp +++ b/modules/mediawiki/manifests/deploy.pp @@ -116,6 +116,37 @@ require => File['/srv/mediawiki-staging'], } + + exec { 'MediaWiki Config Sync': + ensure => absent, + command => "/usr/local/bin/mwdeploy --config --servers=${lookup(mediawiki::default_sync)}", + cwd => '/srv/mediawiki-staging', + refreshonly => true, + user => www-data, + subscribe => Git::Clone['MediaWiki config'], + require => File['/usr/local/bin/mwdeploy'], + } + + exec { 'Landing Sync': + ensure => absent, + command => "/usr/local/bin/mwdeploy --landing --servers=${lookup(mediawiki::default_sync)} --no-log", + cwd => '/srv/mediawiki-staging', + refreshonly => true, + user => www-data, + subscribe => Git::Clone['landing'], + require => File['/usr/local/bin/mwdeploy'], + } + + exec { 'ErrorPages Sync': + ensure => absent, + command => "/usr/local/bin/mwdeploy --errorpages --servers=${lookup(mediawiki::default_sync)} --no-log", + cwd => '/srv/mediawiki-staging', + refreshonly => true, + user => www-data, + subscribe => Git::Clone['ErrorPages'], + require => File['/usr/local/bin/mwdeploy'], + } + # This is outside of the is_canary if so that test* also pulls # the certificate, as that server has use_staging to true but not # is_canary