Zuulv3: move the job dir under /var/lib/zuul

We want to ensure that our jobdir and the git repo cache are
on the same filesystem.  Configure the executors to use a dir
under /var/lib/zuul for the jobdir.  We will mount a new (large)
filesystem at /var/lib/zuul to accomodate both.

Change-Id: I91472fa609274aadcf4945aad44f25014c07b105
This commit is contained in:
James E. Blair 2017-08-16 10:00:19 -07:00
parent 0cc4c05cbd
commit a7ef39c2c0
2 changed files with 8 additions and 0 deletions

View File

@ -323,6 +323,13 @@ class zuul (
group => 'zuul',
}
file { '/var/lib/zuul/builds':
ensure => directory,
owner => 'zuul',
group => 'zuul',
require => File['/var/lib/zuul'],
}
file { '/var/lib/zuul/git':
ensure => directory,
owner => 'zuul',

View File

@ -48,6 +48,7 @@ git_user_name=<%= @git_name %>
[executor]
log_config=/etc/zuul/executor-logging.conf
job_dir=/var/lib/zuul/builds
<% if @site_variables_yaml_file != nil -%>
variables=/etc/zuul/site-variables.yaml
<% end -%>