5fdfa26704
Add a templated zuul.conf with apikey filled in by hiera. Made an openstack_project::zuul class to encapsulate installation and config of zuul with our config files. Change-Id: Idc09819b27672879b74b90bdbf699b07aa416a2a Reviewed-on: https://review.openstack.org/10460 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
33 lines
864 B
Puppet
33 lines
864 B
Puppet
class openstack_project::zuul(
|
|
$jenkins_server,
|
|
$jenkins_user,
|
|
$jenkins_apikey,
|
|
$gerrit_server,
|
|
$gerrit_user
|
|
) {
|
|
|
|
class { "::zuul":
|
|
jenkins_server => $jenkins_server,
|
|
jenkins_user => $jenkins_user,
|
|
jenkins_apikey => $jenkins_apikey,
|
|
gerrit_server => $gerrit_server,
|
|
gerrit_user => $gerrit_user,
|
|
}
|
|
|
|
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'],
|
|
}
|
|
}
|