
push_change_refs controls whether zuul should push its reference back in Gerrit. This might not be always wanted, for example on very busy Gerrit installation that never use the refs/zuul/* hierarchy for any purpose. Pushing back to Gerrit is now disabled by default and is explicitly enabled on OpenStack infrastructure (openstack_project::zuul). Change-Id: I24111ba4b20ab3d5198fdf7deaf902485260d8a5 Reviewed-on: https://review.openstack.org/16475 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
38 lines
1023 B
Puppet
38 lines
1023 B
Puppet
# == Class: openstack_project::zuul
|
|
#
|
|
class openstack_project::zuul(
|
|
$jenkins_server = '',
|
|
$jenkins_user = '',
|
|
$jenkins_apikey = '',
|
|
$gerrit_server = '',
|
|
$gerrit_user = '',
|
|
$url_pattern = ''
|
|
) {
|
|
|
|
class { '::zuul':
|
|
jenkins_server => $jenkins_server,
|
|
jenkins_user => $jenkins_user,
|
|
jenkins_apikey => $jenkins_apikey,
|
|
gerrit_server => $gerrit_server,
|
|
gerrit_user => $gerrit_user,
|
|
url_pattern => $url_pattern,
|
|
push_change_refs => true
|
|
}
|
|
|
|
file { '/etc/zuul/layout.yaml':
|
|
ensure => present,
|
|
source => 'puppet:///modules/openstack_project/zuul/layout.yaml',
|
|
notify => Exec['zuul-reload'],
|
|
}
|
|
file { '/etc/zuul/openstack_functions.py':
|
|
ensure => present,
|
|
source => 'puppet:///modules/openstack_project/zuul/openstack_functions.py',
|
|
notify => Exec['zuul-reload'],
|
|
}
|
|
file { '/etc/zuul/logging.conf':
|
|
ensure => present,
|
|
source => 'puppet:///modules/openstack_project/zuul/logging.conf',
|
|
notify => Exec['zuul-reload'],
|
|
}
|
|
}
|