Add $site_variables_yaml_file to zuul::executor

Change-Id: I2a5d65b6f43a3866f1f10e47cb545f70397739f0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-08-03 14:12:24 -04:00
parent 90df637aaa
commit 066bd3b748
1 changed files with 13 additions and 0 deletions

View File

@ -19,6 +19,7 @@
class zuul::executor (
$ensure = undef,
$manage_log_conf = true,
$site_variable_yaml_file = undef,
) {
include ::apt
apt::ppa { 'ppa:openstack-ci-core/bubblewrap': }
@ -58,6 +59,18 @@ class zuul::executor (
}
}
if $site_variable_yaml_file != undef {
file { '/etc/zuul/site-variables.yaml':
ensure => file,
group => 'zuul',
mode => '0644',
owner => 'zuul',
replace => true,
require => File['/etc/zuul'],
source => $site_variable_yaml_file,
}
}
include ::logrotate
::logrotate::file { 'executor.log':
log => '/var/log/zuul/executor.log',