packer-cn/builder
Brandon Turner b2258dc4e9
Fix chroot builder to work with chef-solo
According to be5adb92b5, the UploadDir
method supports two ways of copying depending on whether a trailing
slash is used:
    src = "dir"  -> dest/dir
    src = "dir/" -> dest

On BSD-based systems (such as OSX, FreeBSD, etc.) the `cp -R` command
handles these two cases automatically.  However, Linux treats "src/" and
"src" the same.

To support the trailing slash syntax portably, we can use:
    src = "dir"   -> dest/dir
    src = "dir/." -> dest

This works on BSD and Linux.  It is better than using wildcards as it
grabs hidden files as well.

This fixes #1196 that prevents the chef-solo provisioner from working
with the chroot builder.
2014-05-27 19:02:29 -05:00
..
amazon Fix chroot builder to work with chef-solo 2014-05-27 19:02:29 -05:00
digitalocean fmt 2014-05-01 14:24:19 -07:00
docker website: add docs for docker-import and docker-push 2014-01-19 20:42:42 -08:00
googlecompute fmt 2014-04-26 11:12:43 -07:00
null builder/null: pass SSH tests 2014-04-26 11:28:02 -07:00
openstack Allow OpenStack builder to skip certificate verification 2014-05-06 12:26:05 +01:00
parallels builder/parallels: Don't delete sound, since it doesn't allways exist. 2014-05-11 11:20:56 +02:00
qemu Fix http_files typo in comments 2014-05-06 17:13:15 +02:00
virtualbox virtualbox: use local VBoxGuestAdditions.iso by default 2014-05-06 16:15:55 -07:00
vmware Update vmx_config.go 2014-05-12 14:43:12 -07:00