Cimpress-MCP / vagrant-orchestrate

Cross platform deployment orchestration to existing managed servers using vagrant provisioners
Other
19 stars 13 forks source link

synced_folder ownership on non-existing directory #51

Closed calvn closed 8 years ago

calvn commented 8 years ago

Is there a flag to disable the action of taking ownership of a synced folder? I am currently encountering an error with vorch that happens when the synced folder doesn't exist (yet), but will be created by rsync:

box.vm.synced_folder "./../credentials/gosecret", "/tmp/.gokeys"

In this case, the /tmp/.gokeys/ directory will be created by rsync, but vorch fails with the chown because that directory does not exist. This case would not prior to v0.8.0 of the plugin.

calvn commented 8 years ago

Closing as I just found that there is an option to do so with take_synced_folder_ownership. However, I think that the action should first check whether that directory exists before trying to take ownership of it.