Merge "Enable Gearman as default on Jenkins slaves"
This commit is contained in:
commit
d302b1b698
@ -78,6 +78,7 @@ node 'jenkins.openstack.org' {
|
|||||||
zmq_event_receivers => ['logstash.openstack.org',
|
zmq_event_receivers => ['logstash.openstack.org',
|
||||||
'nodepool.openstack.org',
|
'nodepool.openstack.org',
|
||||||
],
|
],
|
||||||
|
gearman_server => 'zuul.openstack.org',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,6 +93,7 @@ node 'jenkins01.openstack.org' {
|
|||||||
zmq_event_receivers => ['logstash.openstack.org',
|
zmq_event_receivers => ['logstash.openstack.org',
|
||||||
'nodepool.openstack.org',
|
'nodepool.openstack.org',
|
||||||
],
|
],
|
||||||
|
gearman_server => 'zuul.openstack.org',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -106,6 +108,7 @@ node 'jenkins02.openstack.org' {
|
|||||||
zmq_event_receivers => ['logstash.openstack.org',
|
zmq_event_receivers => ['logstash.openstack.org',
|
||||||
'nodepool.openstack.org',
|
'nodepool.openstack.org',
|
||||||
],
|
],
|
||||||
|
gearman_server => 'zuul.openstack.org',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,6 +123,7 @@ node 'jenkins03.openstack.org' {
|
|||||||
zmq_event_receivers => ['logstash.openstack.org',
|
zmq_event_receivers => ['logstash.openstack.org',
|
||||||
'nodepool.openstack.org',
|
'nodepool.openstack.org',
|
||||||
],
|
],
|
||||||
|
gearman_server => 'zuul.openstack.org',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -134,6 +138,7 @@ node 'jenkins04.openstack.org' {
|
|||||||
zmq_event_receivers => ['logstash.openstack.org',
|
zmq_event_receivers => ['logstash.openstack.org',
|
||||||
'nodepool.openstack.org',
|
'nodepool.openstack.org',
|
||||||
],
|
],
|
||||||
|
gearman_server => 'zuul.openstack.org',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,6 +153,7 @@ node 'jenkins05.openstack.org' {
|
|||||||
zmq_event_receivers => ['logstash.openstack.org',
|
zmq_event_receivers => ['logstash.openstack.org',
|
||||||
'nodepool.openstack.org',
|
'nodepool.openstack.org',
|
||||||
],
|
],
|
||||||
|
gearman_server => 'zuul.openstack.org',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -162,6 +168,7 @@ node 'jenkins06.openstack.org' {
|
|||||||
zmq_event_receivers => ['logstash.openstack.org',
|
zmq_event_receivers => ['logstash.openstack.org',
|
||||||
'nodepool.openstack.org',
|
'nodepool.openstack.org',
|
||||||
],
|
],
|
||||||
|
gearman_server => 'zuul.openstack.org',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -176,6 +183,7 @@ node 'jenkins07.openstack.org' {
|
|||||||
zmq_event_receivers => ['logstash.openstack.org',
|
zmq_event_receivers => ['logstash.openstack.org',
|
||||||
'nodepool.openstack.org',
|
'nodepool.openstack.org',
|
||||||
],
|
],
|
||||||
|
gearman_server => 'zuul.openstack.org',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -192,6 +200,7 @@ node 'jenkins-dev.openstack.org' {
|
|||||||
hpcloud_username => hiera('nodepool_hpcloud_username'),
|
hpcloud_username => hiera('nodepool_hpcloud_username'),
|
||||||
hpcloud_password => hiera('nodepool_hpcloud_password'),
|
hpcloud_password => hiera('nodepool_hpcloud_password'),
|
||||||
hpcloud_project => hiera('nodepool_hpcloud_project'),
|
hpcloud_project => hiera('nodepool_hpcloud_project'),
|
||||||
|
gearman_server => 'zuul-dev.openstack.org',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,6 +4,9 @@ class jenkins::master(
|
|||||||
$logo = '',
|
$logo = '',
|
||||||
$vhost_name = $::fqdn,
|
$vhost_name = $::fqdn,
|
||||||
$serveradmin = "webmaster@${::fqdn}",
|
$serveradmin = "webmaster@${::fqdn}",
|
||||||
|
$gearman_server = '127.0.0.1',
|
||||||
|
$gearman_enable = true,
|
||||||
|
$gearman_port = '4730',
|
||||||
$ssl_cert_file = '',
|
$ssl_cert_file = '',
|
||||||
$ssl_key_file = '',
|
$ssl_key_file = '',
|
||||||
$ssl_chain_file = '',
|
$ssl_chain_file = '',
|
||||||
@ -162,6 +165,17 @@ class jenkins::master(
|
|||||||
require => File['/var/lib/jenkins'],
|
require => File['/var/lib/jenkins'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file {'/var/lib/jenkins/hudson.plugins.gearman.GearmanPluginConfig.xml':
|
||||||
|
ensure => present,
|
||||||
|
content => template('jenkins/gearman-plugin.xml.erb'),
|
||||||
|
owner => 'jenkins',
|
||||||
|
group => 'adm',
|
||||||
|
require => [
|
||||||
|
Class['zuul'],
|
||||||
|
File['/var/lib/jenkins'],
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
file { '/var/lib/jenkins/plugins/simple-theme-plugin':
|
file { '/var/lib/jenkins/plugins/simple-theme-plugin':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'jenkins',
|
owner => 'jenkins',
|
||||||
|
6
modules/jenkins/templates/gearman-plugin.xml.erb
Normal file
6
modules/jenkins/templates/gearman-plugin.xml.erb
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<hudson.plugins.gearman.GearmanPluginConfig plugin="gearman-plugin@0.0.6">
|
||||||
|
<enablePlugin><%= gearman_enable %></enablePlugin>
|
||||||
|
<host><%= gearman_server %></host>
|
||||||
|
<port><%= gearman_port %></port>
|
||||||
|
</hudson.plugins.gearman.GearmanPluginConfig>
|
@ -10,7 +10,8 @@ class openstack_project::jenkins (
|
|||||||
$ssl_chain_file_contents = '',
|
$ssl_chain_file_contents = '',
|
||||||
$jenkins_ssh_private_key = '',
|
$jenkins_ssh_private_key = '',
|
||||||
$zmq_event_receivers = [],
|
$zmq_event_receivers = [],
|
||||||
$sysadmins = []
|
$sysadmins = [],
|
||||||
|
$gearman_server = '127.0.0.1',
|
||||||
) {
|
) {
|
||||||
include openstack_project
|
include openstack_project
|
||||||
|
|
||||||
@ -40,6 +41,7 @@ class openstack_project::jenkins (
|
|||||||
ssl_chain_file_contents => $ssl_chain_file_contents,
|
ssl_chain_file_contents => $ssl_chain_file_contents,
|
||||||
jenkins_ssh_private_key => $jenkins_ssh_private_key,
|
jenkins_ssh_private_key => $jenkins_ssh_private_key,
|
||||||
jenkins_ssh_public_key => $openstack_project::jenkins_ssh_key,
|
jenkins_ssh_public_key => $openstack_project::jenkins_ssh_key,
|
||||||
|
gearman_server => $gearman_server,
|
||||||
}
|
}
|
||||||
|
|
||||||
jenkins::plugin { 'ansicolor':
|
jenkins::plugin { 'ansicolor':
|
||||||
@ -61,7 +63,7 @@ class openstack_project::jenkins (
|
|||||||
version => '1.70',
|
version => '1.70',
|
||||||
}
|
}
|
||||||
jenkins::plugin { 'gearman-plugin':
|
jenkins::plugin { 'gearman-plugin':
|
||||||
version => '0.0.3',
|
version => '0.0.6',
|
||||||
}
|
}
|
||||||
jenkins::plugin { 'git':
|
jenkins::plugin { 'git':
|
||||||
version => '1.1.23',
|
version => '1.1.23',
|
||||||
|
@ -12,6 +12,7 @@ class openstack_project::jenkins_dev (
|
|||||||
$hpcloud_username ='',
|
$hpcloud_username ='',
|
||||||
$hpcloud_password ='',
|
$hpcloud_password ='',
|
||||||
$hpcloud_project ='',
|
$hpcloud_project ='',
|
||||||
|
$gearman_server = '127.0.0.1',
|
||||||
) {
|
) {
|
||||||
include openstack_project
|
include openstack_project
|
||||||
|
|
||||||
@ -33,6 +34,7 @@ class openstack_project::jenkins_dev (
|
|||||||
ssl_chain_file => '',
|
ssl_chain_file => '',
|
||||||
jenkins_ssh_private_key => $jenkins_ssh_private_key,
|
jenkins_ssh_private_key => $jenkins_ssh_private_key,
|
||||||
jenkins_ssh_public_key => $openstack_project::jenkins_dev_ssh_key,
|
jenkins_ssh_public_key => $openstack_project::jenkins_dev_ssh_key,
|
||||||
|
gearman_server => $gearman_server,
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/default/jenkins':
|
file { '/etc/default/jenkins':
|
||||||
|
Loading…
Reference in New Issue
Block a user