- From: Brad Knowles <
>
- To:
- Cc: Brad Knowles <
>
- Subject: [chef] Re: Sync a directory from chef server to node
- Date: Tue, 9 Apr 2013 07:35:59 -0600
On Apr 9, 2013, at 7:29 AM, jfotop
<
>
wrote:
>
I tried using remote_directory resource, but empty directories where not
>
created and also the file permissions where not as the original.
>
I also thought about creating a tar archive and untarring it on the node
>
(after
>
copying it), but I want the resource to be idempotent.
You could use a tarball to provide the source filesystem meta-data, and then
use rsync locally on the filesystem to ensure that the target directory
structure has the same ownership/permissions as the tarball.
Kind of a screwy way to have to do that, but at least you would have rsync
going for you to provide idempotency.
--
Brad Knowles
<
>
LinkedIn Profile: <
http://tinyurl.com/y8kpxu>
Archive powered by MHonArc 2.6.16.