Ottomata has submitted this change and it was merged.

Change subject: contint: rsync host in labs
......................................................................


contint: rsync host in labs

Creates role::ci::publisher::labs, an intermediary rsync hosts to have
the Jenkins slaves to push their build result.  Can later have the
production host gallium (which hosts doc.wikimedia.org) to fetch from
it.

The rsync is wide open. Labs only network communication inside the labs
project.  I have added a security rule to allow gallium to rsync.

Change-Id: I2044c7a2d3818da5fc9301cf8a36912922821af9
---
M manifests/role/ci.pp
1 file changed, 30 insertions(+), 0 deletions(-)

Approvals:
  Ottomata: Verified; Looks good to me, approved
  Hashar: Verified
  jenkins-bot: Verified



diff --git a/manifests/role/ci.pp b/manifests/role/ci.pp
index 415aa64..d275c37 100644
--- a/manifests/role/ci.pp
+++ b/manifests/role/ci.pp
@@ -367,6 +367,36 @@
 
 }
 
+
+# == Class role::ci::publisher::labs
+#
+# Intermediary rsync hosts in labs to let Jenkins slave publish their results
+# safely.  The production machine hosting doc.wikimedia.org can then fetch the
+# doc from there.
+class role::ci::publisher::labs {
+
+    include role::labs::lvm::srv
+    include rsync::server
+
+    file { '/srv/doc':
+        ensure  => directory,
+        owner   => 'root',
+        group   => 'root',
+        mode    => '0775',
+        require => Class['role::labs::lvm::srv'],
+    }
+
+    rsync::server::module { 'doc':
+        path        => '/srv/doc',
+        read_only   => 'no',
+        require => [
+            File['/srv/doc'],
+            Class['role::labs::lvm::srv'],
+        ],
+    }
+
+}
+
 # Website for Continuous integration
 #
 # http://doc.mediawiki.org/

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I2044c7a2d3818da5fc9301cf8a36912922821af9
Gerrit-PatchSet: 7
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hashar <has...@free.fr>
Gerrit-Reviewer: Hashar <has...@free.fr>
Gerrit-Reviewer: Ottomata <o...@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