From 3c4a09e55ebca52ad42c7b63c9540140ab853221 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Fri, 10 Jul 2015 20:02:16 +0000 Subject: [PATCH] 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 --- modules/openstack_project/manifests/slave_common.pp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/openstack_project/manifests/slave_common.pp b/modules/openstack_project/manifests/slave_common.pp index 704109c221..70c5617e09 100644 --- a/modules/openstack_project/manifests/slave_common.pp +++ b/modules/openstack_project/manifests/slave_common.pp @@ -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',