Dzahn has submitted this change and it was merged.

Change subject: Gerrit replication: ensure group exists before user and before 
ssh key
......................................................................


Gerrit replication: ensure group exists before user and before ssh key

Change-Id: I1748a6812f099a21b5b53b8f8f1ae1e643510b2f
---
M modules/gerrit/manifests/replicationdest.pp
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  jenkins-bot: Verified
  Dzahn: Looks good to me, approved



diff --git a/modules/gerrit/manifests/replicationdest.pp 
b/modules/gerrit/manifests/replicationdest.pp
index c282d60..4c84edf 100644
--- a/modules/gerrit/manifests/replicationdest.pp
+++ b/modules/gerrit/manifests/replicationdest.pp
@@ -13,11 +13,13 @@
         shell      => '/bin/bash',
         managehome => true,
         system     => true,
+        require    => Group[$slaveuser],
     }
 
     ssh::userkey { $slaveuser:
         ensure  => present,
         content => $ssh_key,
+        require => User[$slaveuser],
     }
 
     # Add ytterbium to ssh exceptions for git replication

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1748a6812f099a21b5b53b8f8f1ae1e643510b2f
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Chad <ch...@wikimedia.org>
Gerrit-Reviewer: Dzahn <dz...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to