packer-cn/builder/amazon
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
..
chroot Fix chroot builder to work with chef-solo 2014-05-27 19:02:29 -05:00
common Adds support for encrypted EBS volumes 2014-05-22 11:36:22 -07:00
ebs Remove unused file 2014-05-15 17:22:40 +01:00
instance Merge pull request #1021 from laggyluke/master 2014-04-21 18:08:32 -07:00