I need to be able to sync some stuff in /root directory: Is there a way I
can rsync as root-user or with sudo. It's possible with rsync command from
the CLI, using --rsync-path="sudo rsync" option. Is it anything similar in
Vagrant available? My attempt of using owner: "root", group: "root" in
synced_folder settings didn't work, throwing in errors like these:
rsync: ERROR: cannot stat destination "/root/p1/puppet": Permission denied
(13)
rsync error: errors selecting input/output files, dirs (code 3) at
main.c(583) [Receiver=3.0.9]
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at
/SourceCache/rsync/rsync-42/rsync/io.c(452) [sender=2.6.9]
This is what I got in my Vagrantfile:
config2.vm.synced_folder "../puppet",
"/root/"+nodes_cfg['aws_env']+"/puppet", type: "rsync",
owner: "root", group: "root", rsync__exclude:
[".git/", "ORG_*/", "OLD_*/"]
Am I missing out anything or anyone know any workaround? Best!!
--
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.