Hey Saeed, Another way you can do this is to use the host_shell provisioner to clone from bit bucket. That way, you do not need to add any sort of credentials on the VM.
The only problem is when you try to do this while using Rsync because Vagrant may not sync between provisioners. See my post about the vagrant-force-rsync plugin here: https://groups.google.com/d/msg/vagrant-up/HOXfKKtDgx0/4llHi9Mv8OcJ Sorry about the lateness on the post, but I hope this helps someone out there! On Tuesday, April 21, 2015 at 6:32:43 AM UTC-4, Saeed Bhuta wrote: > > Hi guys, > > I'm dabbling with Vagrant for the first time. I am working on a provision > shell script which should clone a repository from Bitbucket. However I keep > getting the following error: > > ==> default: remote: Host key verification failed. >> ==> default: abort: no suitable response from remote hg! >> The SSH command responded with a non-zero exit status. Vagrant assumes >> that this means the command failed. The output for this command should be >> in the log above. Please read the output to determine what went wrong. > > > How can I rectify this? > > > I've posted more info here > <http://stackoverflow.com/questions/29753144/how-can-i-get-a-vagrant-provision-shell-script-to-successfully-clone-a-mercurial>along > > with links to the shell script and Vagrantfile. > > > Appreciate any help, > > Saeed. > -- 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.
