[MediaWiki-commits] [Gerrit] contint: pip shared cache on labs slaves - change (operations/puppet)

2014-02-28 Thread Hashar (Code Review)
Hashar has uploaded a new change for review.

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

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
1 file changed, 21 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/11/116111/1

diff --git a/manifests/role/ci.pp b/manifests/role/ci.pp
index 5cbd305..9e199ad 100644
--- a/manifests/role/ci.pp
+++ b/manifests/role/ci.pp
@@ -188,6 +188,27 @@
   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',
+  content = 
+# This file is managed by puppet
+# See role::ci::slave::labs::common
+
+# Configure a shared cache to speedup dependencies
+[install]
+download-cache = ~/cache/pip
+,
+  }
+
   git::userconfig { '.gitconfig for jenkins-deploy user':
   homedir  = '/mnt/home/jenkins-deploy',
   settings = {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id3dfbd38fccdb97c3c5f10c5bdf5f5f17b3b39b1
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hashar has...@free.fr

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


[MediaWiki-commits] [Gerrit] contint: pip shared cache on labs slaves - change (operations/puppet)

2014-02-28 Thread coren (Code Review)
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 000..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