Hi.
I am working on provisioning of Linux (RHEL) boxes at AWS , using Vagrant with chef-solo provisioner.
Problem occurs at step, when Vagrant attempts to sync chef cookbooks folder.
Host path: /c/DevOps/cookbooks/
Guest path: /tmp/vagrant-chef/f8fe0df38f5a1a717e0cad4d37d84de3/cookbooks
Command: rsync --verbose --archive --delete -z --copy-links --chmod=ugo=rwX --no-perms --no-owner --no-group --rsync-pat
h sudo rsync -e ssh -p 22 -o StrictHostKeyChecking=no -o IdentitiesOnly=true -o UserKnownHostsFile=/dev/null -i 'c:/DevO
ps/.vagrant/machines/dummy_l/aws/private_key' --exclude .vagrant/ /c/DevOps/cookbooks/ vagrant@:/tmp/vagran
t-chef/f8fe0df38f5a1a717e0cad4d37d84de3/cookbooks
Error:
There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.
When I drilled down to source of problem with our IT - it seems to be in option, that Vagrant passes to rsync:
-i 'c:/DevOps/.vagrant/machines/dummy_l/aws/private_key'
Problem is - that our corporate brandmauer prohibit outgoing SSL
connections with private key. Only permited connections are - with
user/password.
I have customized my base AMI And it accepts SSH connections with
user/password.So - it is not a problem. But , it seems that Vagrant aws
plugin always build rsync command line - to connect with private key.
And I do not find any option to change it... Is there any way to bypass
those issue , without intervening in aws plugin source code?
config.vm.provision :chef_solo do |chef|
# chef.cookbooks_path = "cookbooks"
chef.synced_folder_type = "rsync"
chef.synced_folder , :disabled true
chef.install = "false"
chef.add_recipe("mfweb")
end c:/DevOps/Vagrantfile:36: syntax error, unexpected keyword_true, expecting :: or '[' or '.'Is it possible at all to disable sync of chef cookbooks and copy them to guest machine manually?
chef.synced_folder , :disabled true
^
There is a syntax error in the following Vagrantfile. The syntax error
message is reproduced below for convenience:
c:/DevOps/Vagrantfile:36: syntax error, unexpected keyword_true, expecting :: or '[' or '.'
chef.synced_folder , :disabled true
^
INFO interface: Machine: error-exit ["Vagrant::Errors::VagrantfileSyntaxError", "There is a syntax error in the followi
ng Vagrantfile. The syntax error\nmessage is reproduced below for convenience:\n\nc:/DevOps/Vagrantfile:36: syntax error
, unexpected keyword_true, expecting :: or '[' or '.'\n chef.synced_folder , :disabled true \r\n
^"]