Skip to content

Commit

Permalink
mediawiki::deploy: require manual deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox authored Nov 22, 2024
1 parent b0f4114 commit 7728717
Showing 1 changed file with 3 additions and 30 deletions.
33 changes: 3 additions & 30 deletions modules/mediawiki/manifests/deploy.pp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
}

git::clone { 'MediaWiki config':
ensure => 'latest',
ensure => present,
directory => '/srv/mediawiki-staging/config',
origin => 'https://github.com/miraheze/mw-config',
branch => 'master',
Expand All @@ -95,7 +95,7 @@
}

git::clone { 'landing':
ensure => 'latest',
ensure => present,
directory => '/srv/mediawiki-staging/landing',
origin => 'https://github.com/miraheze/landing',
branch => 'master',
Expand All @@ -106,7 +106,7 @@
}

git::clone { 'ErrorPages':
ensure => 'latest',
ensure => present,
directory => '/srv/mediawiki-staging/ErrorPages',
origin => 'https://github.com/miraheze/ErrorPages',
branch => 'master',
Expand All @@ -116,33 +116,6 @@
require => File['/srv/mediawiki-staging'],
}

exec { 'MediaWiki Config Sync':
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':
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':
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 7728717

Please sign in to comment.