流浪者测试厨师收款人 - 但如何处理私人混帐 [英] Vagrant to test chef recipies - but how to deal with private git
问题描述
谢谢
在流浪汉+厨师设置中使用带密码的ssh密钥 a>
将会有类似的答案,可能会有所帮助。
不知道厨师独奏或厨师 - 客户+厨师服务器的更多细节。它涉及到ssh键。
确保您使用类似
git@github.com:user / repo的方式进行自动处理。 git
然后您需要确保您的虚拟机和底层主机是ssh代理转发。
确保你的〜/ .ssh / config有适当的行。一般的例子是。
主机*
ForwardAgent是
请记住,第一场比赛胜于〜/ .ssh / config,而不是最具体的
然后你可能必须添加 ssh-add
的任何身份,并确保 ssh-agent
也存在。
最后,在Vagrantfile中,
config.ssh.forward_agent = true
I use vagrant to test my chef recipes. The issue is that I have clone my private repo and the machine is not auteticated. How can i automated git authentication to boostrap chef? I am using the vagrant ubuntu 11.10 with chef.
Thanks
use ssh keys with passphrase on a vagrant+chef setup will have similar answers that might be helpful.
Without knowing more details of chef-solo, or chef-client + chef-server. It comes down to ssh keys.
Make sure you are authing with something like
git@github.com:user/repo.git
Then you will want to ensure that your VM and underlying host is ssh agent forwarding.
Make sure your ~/.ssh/config has the appropriate line. A general example is.
host *
ForwardAgent yes
Remember that first match wins in ~/.ssh/config , not the most specific
Then you may have to add any identities with ssh-add
and make sure ssh-agent
is there as well.
Finally, in the Vagrantfile,
config.ssh.forward_agent = true
这篇关于流浪者测试厨师收款人 - 但如何处理私人混帐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!