Add a common data directory for job workers

It's useful to be able to add data files on our workers as a common
reference, much in the same way job scripts are provided. This will
be used to keep a local copy of the bindep fallback package list so
that it doesn't require directly cloning the project-config repo
during job run-time.

Change-Id: I4487b841f596cdfa2535c944aa3efe32a501b3c9
Depends-On: I30a8be9167cc5c52faae59a35a284b3f37b93f44
This commit is contained in:
Jeremy Stanley 2015-07-10 20:02:16 +00:00
parent 4fcb48ccb4
commit 3c4a09e55e

View File

@ -17,6 +17,19 @@ class openstack_project::slave_common(
url => $project_config_repo,
}
file { '/usr/local/jenkins/common_data':
ensure => directory,
owner => 'root',
group => 'root',
mode => '0755',
recurse => true,
purge => true,
force => true,
require => [File['/usr/local/jenkins'],
$::project_config::config_dir],
source => $::project_config::jenkins_data_dir,
}
file { '/usr/local/jenkins/slave_scripts':
ensure => directory,
owner => 'root',