diff --git a/manifests/executor.pp b/manifests/executor.pp index 521464c..f3ce82c 100644 --- a/manifests/executor.pp +++ b/manifests/executor.pp @@ -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',