Chad has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/300929

Change subject: Gerrit: Clean up rsync migration stuff
......................................................................

Gerrit: Clean up rsync migration stuff

Not sure how to undo the stuff installed by rsync::server other
than manually (which isn't a huge deal because it's only one server)

(in which case, maybe I don't need the ensure => absents and
could just remove the class)

Change-Id: I521bd51a22c47d2d4e55744732790a148c570b7d
---
M modules/gerrit/manifests/migration/destination.pp
D modules/gerrit/manifests/migration/source.pp
2 files changed, 2 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/29/300929/1

diff --git a/modules/gerrit/manifests/migration/destination.pp 
b/modules/gerrit/manifests/migration/destination.pp
index b95f479..d9c45c6 100644
--- a/modules/gerrit/manifests/migration/destination.pp
+++ b/modules/gerrit/manifests/migration/destination.pp
@@ -4,6 +4,7 @@
     $sourceip='208.80.154.80'
 
     ferm::service { 'gerrit-migration-rsync':
+        ensure => absent,
         proto  => 'tcp',
         port   => '873',
         srange => "${sourceip}/32",
@@ -16,6 +17,7 @@
     }
 
     rsync::server::module { 'gerrit_git_data':
+        ensure      => absent,
         path        => '/srv/gerrit',
         read_only   => 'no',
         hosts_allow => $sourceip,
diff --git a/modules/gerrit/manifests/migration/source.pp 
b/modules/gerrit/manifests/migration/source.pp
deleted file mode 100644
index 0140457..0000000
--- a/modules/gerrit/manifests/migration/source.pp
+++ /dev/null
@@ -1,9 +0,0 @@
-class gerrit::migration::source {
-    $cmd = '/usr/bin/rsync -rlpt /var/lib/gerrit2/review_site/git 
lead::gerrit_git_data'
-    cron { 'rsync_gerrit_data':
-        ensure  => absent,
-        command => $cmd,
-        user    => 'root',
-        hour    => [0, 6, 12, 18]
-    }
-}

-- 
To view, visit https://gerrit.wikimedia.org/r/300929
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I521bd51a22c47d2d4e55744732790a148c570b7d
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Chad <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to