coren has submitted this change and it was merged.

Change subject: contint: pip shared cache on labs slaves
......................................................................


contint: pip shared cache on labs slaves

pip --download-cache=DIR lets pip cache downloaded package. This will
speed up Jenkins jobs that fetches dependencies.

Change-Id: Id3dfbd38fccdb97c3c5f10c5bdf5f5f17b3b39b1
---
M manifests/role/ci.pp
A modules/contint/files/pip-labs-slaves.conf
2 files changed, 20 insertions(+), 0 deletions(-)

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



diff --git a/manifests/role/ci.pp b/manifests/role/ci.pp
index 5cbd305..99bbb8f 100644
--- a/manifests/role/ci.pp
+++ b/manifests/role/ci.pp
@@ -188,6 +188,20 @@
       mode   => '0775',
   }
 
+  file { '/mnt/home/jenkins-deploy/.pip':
+      ensure => directory,
+      owner  => 'jenkins-deploy',
+      group  => 'wikidev',
+      mode   => '0775',
+  }
+  file { '/mnt/home/jenkins-deploy/.pip/pip.conf':
+      ensure => present,
+      owner  => 'jenkins-deploy',
+      group  => 'wikidev',
+      mode   => '0775',
+      source => 'puppet:///modules/contint/pip-labs-slaves.conf',
+  }
+
   git::userconfig { '.gitconfig for jenkins-deploy user':
       homedir  => '/mnt/home/jenkins-deploy',
       settings => {
diff --git a/modules/contint/files/pip-labs-slaves.conf 
b/modules/contint/files/pip-labs-slaves.conf
new file mode 100644
index 0000000..3335c09
--- /dev/null
+++ b/modules/contint/files/pip-labs-slaves.conf
@@ -0,0 +1,6 @@
+# This file is managed by puppet
+# file:///contint/pip-labs-slaves.conf
+
+# Configure a shared cache to speedup dependencies
+[install]
+download-cache = ~/cache/pip

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

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