example42/puppet-modules — Issue #23: stdlib42::netinstall (using rsync) does not work on CentOS 6.2
Author: pwhupe
Created: 2012-01-31 23:32:03+00:00
State: open

Test scenario: When installing jenkins from source (as .war file), the .war file is not copied to /webapps

Module 'jenkins' is using stdlib42::netinstall to copy the .war file to /webapps. In our case, netinstall internally uses rsync for copying the file.

As far as I can tell, on CentOS 6.2, rsync requires a second parameter (the destination directory). Since it is missing, rsync will silently not copy the file.

exec {
"Extract $source_filename":
command => "mkdir -p $destination_dir && cd $destination_dir && $real_extract_command $work_dir/$source_filename",
}