Hashar has uploaded a new change for review.
https://gerrit.wikimedia.org/r/203073
Change subject: contint: make Jessie slaves package builders
......................................................................
contint: make Jessie slaves package builders
The role::package::builder setup cowbuilder images suitable for building
packages on all Linux distributions we care about, specially with
customization to grab packages from apt.wikimedia.org
Thus, we can build packages for our Precise flavor on a Jessie host by
simply pointing to the appropriate cow image.
On Jessie hosts, apply role::package::builder. Use a require to make
sure the extended disk space has been mounted on the instance before the
role is realized by puppet. The dependency chain is in
contint::package::labs:
File['/var/cache/pbuilder']
File['/mnt/pbuilder']
File['/mnt']
/mnt comes from role::ci::slave::labs::common which invokes
role::labs::lvm::mnt
Bug: T95545
Change-Id: I2e2cd5c3cc137e2cb1dd762ceecc5a381f79786b
---
M manifests/role/ci.pp
1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/73/203073/1
diff --git a/manifests/role/ci.pp b/manifests/role/ci.pp
index 7da38a3..2ebbf23 100644
--- a/manifests/role/ci.pp
+++ b/manifests/role/ci.pp
@@ -417,6 +417,15 @@
system::role { 'role::ci::slave::labs':
description => 'CI Jenkins slave on labs' }
+ # Debian slaves are used to build Debian packages for all our distributions
+ if os_version('debian >= jessie') {
+ class { 'role::package::builder':
+ # Make sure pbuilder base dir ends up on labs extended disk
+ # See contint::packages::labs for the full dependency chain
+ require => File['/var/cache/pbuilder'],
+ }
+ }
+
file { '/srv/localhost':
ensure => directory,
mode => '0755',
--
To view, visit https://gerrit.wikimedia.org/r/203073
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2e2cd5c3cc137e2cb1dd762ceecc5a381f79786b
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hashar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits