what I would do will be

- set a share folder between the host and the vm, mount as read only
- shell provisioner to copy and set permissions, and i will use rsync
locally between this folder and the local folder in the vm

in this way, if I want to sync again, will just have to run vagrant
provision

does this suit what you need?

Alvaro.


On Mon, Aug 25, 2014 at 10:14 AM, fschwiet <[email protected]> wrote:

>   I'd like to copy a full directory to the vagrant machine, setting
> ownership on the files to a particular user account with shell scripts
> marked as executeable.
>
>   Is there a natural way to do this?  The file provisioner seems to be for
> single files, and does not take a parameter to set the file owner.  The
> Synced Folder provisioner will let me set the owner, but I want the
> directory copied permanently without syncing.
>
>   The solution that seems apparent is to tar the directory locally, using
> the file provisioner to copy the tar file, then run a provisioning script
> to extract the tar contents and set permissions.  I wonder if there is an
> easier way though?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to