coren has submitted this change and it was merged.
Change subject: contint: jenkins master role + ssd directories
......................................................................
contint: jenkins master role + ssd directories
This patch creates a role::jenkins::master::production class which is
meant to represent the Jenkins installation on gallium. I am adding
there the new workspace destination which is available since we added a
SSD on the box: /srv/ssd/jenkins/workspace
Change-Id: I90264df1cfeadf2bce1d7732efe06126135ebc16
---
A manifests/role/jenkins.pp
M manifests/site.pp
2 files changed, 25 insertions(+), 0 deletions(-)
Approvals:
coren: Verified; Looks good to me, approved
diff --git a/manifests/role/jenkins.pp b/manifests/role/jenkins.pp
new file mode 100644
index 0000000..11995f4
--- /dev/null
+++ b/manifests/role/jenkins.pp
@@ -0,0 +1,24 @@
+# vim: noet
+class role::jenkins::master::production {
+
+ system_role { 'role::zuul::production': description => 'Jenkins master
on production' }
+
+ file { '/srv/ssd/jenkins':
+ ensure => 'directory',
+ owner => 'jenkins',
+ group => 'jenkins',
+ mode => '2775', # group sticky bit
+ require => Mount['/srv/ssd'],
+ }
+
+ file { '/srv/ssd/jenkins/workspace':
+ ensure => 'directory',
+ owner => 'jenkins',
+ group => 'jenkins',
+ mode => '0775',
+ require => [
+ File['/srv/ssd/jenkins'],
+ ],
+ }
+
+}
diff --git a/manifests/site.pp b/manifests/site.pp
index bb7d975..a4fc2e1 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -920,6 +920,7 @@
misc::contint::test::packages,
misc::contint::test::jenkins,
misc::contint::android::sdk,
+ role::jenkins::master::production,
role::zuul::production,
admins::roots,
admins::jenkins
--
To view, visit https://gerrit.wikimedia.org/r/58892
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I90264df1cfeadf2bce1d7732efe06126135ebc16
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hashar <[email protected]>
Gerrit-Reviewer: coren <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits