Ottomata has submitted this change and it was merged.
Change subject: zuul: migrate git dir in production to the ssd
......................................................................
zuul: migrate git dir in production to the ssd
The git workspace used by Zuul is on the slow disk. This patch points
Zuul to use the new SSD at /srv/ssd/zuul/git .
Zuul will need to be shutdown and the repository moved from the old
directory to the new one.
Change-Id: Ibbd118f00bd8a76abcc33e203d0928f383b08040
---
M manifests/role/zuul.pp
1 file changed, 18 insertions(+), 0 deletions(-)
Approvals:
Demon: Looks good to me, but someone else must approve
Ottomata: Verified; Looks good to me, approved
diff --git a/manifests/role/zuul.pp b/manifests/role/zuul.pp
index eca94fa..d541bde 100644
--- a/manifests/role/zuul.pp
+++ b/manifests/role/zuul.pp
@@ -20,6 +20,7 @@
#url_pattern =>
'http://jenkinslogs.wmflabs.org/{change.number}/{change.patchset}/{pipeline.name}/{job.name}/{build.number}',
url_pattern =>
'http://integration.wmflabs.org/ci/job/{job.name}/{build.number}/console',
status_url =>
'http://integration.wmflabs.org/zuul/status',
+ git_dir => '/var/lib/zuul/git',
push_change_refs => false
}
@@ -40,6 +41,22 @@
system_role { "role::zuul::production": description => "Zuul on
production" }
+ # Create directory that would hold the git repos
+ file { '/srv/ssd/zuul':
+ ensure => directory,
+ owner => 'jenkins',
+ group => 'jenkins',
+ mode => '2775',
+ require => Mount['/srv/ssd'],
+ }
+ file { '/srv/ssd/zuul/git':
+ ensure => directory,
+ owner => 'jenkins',
+ group => 'jenkins',
+ mode => '2775',
+ require => File['/srv/ssd/zuul'],
+ }
+
zuulwikimedia::instance { "zuul-production":
jenkins_server =>
'https://integration.wikimedia.org/ci',
jenkins_user => 'zuul-bot',
@@ -49,6 +66,7 @@
#url_pattern =>
'https://integration.wikimedia.org/zuulreport/{change.number}/{change.patchset}/{pipeline.name}/{job.name}/{build.number}',
url_pattern =>
'https://integration.wikimedia.org/ci/job/{job.name}/{build.number}/console',
status_url => 'https://integration.wikimedia.org/zuul/',
+ git_dir => '/srv/ssd/zuul/git',
push_change_refs => false
}
--
To view, visit https://gerrit.wikimedia.org/r/58899
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ibbd118f00bd8a76abcc33e203d0928f383b08040
Gerrit-PatchSet: 4
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hashar <[email protected]>
Gerrit-Reviewer: Demon <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: Ottomata <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits