Skip to content

Commit

Permalink
Update deploy.pp
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox authored Nov 23, 2024
1 parent 7728717 commit b56b9b8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions modules/mediawiki/manifests/deploy.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b56b9b8

Please sign in to comment.