[chef] Re: Vagrant and Chef client and server


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Vagrant and Chef client and server
  • Date: Wed, 16 Jan 2013 10:31:01 -0800


On Wednesday, January 16, 2013 at 10:10 AM, wrote:


We have just started working with Chef and are still trying to figure it out.
We have successfully used Vagrant to created both a Chef server VM and a Chef
client VM that connects to the server. We used Vagrantfiles that we found on
the web that use the chef-server and chef-client cookbooks.

However, the client creation and connection to the server only works if the
client's node does not exist on the server - if chef-client can create the node
on the server it works fine. But, we would like to create the node on the
server first, and populate a run list for it, before creating the VM with
Vagrant. The error I get when I try it is appended.

If you want to follow this approach, you need to create the client first and use it to create the node. Personally, I really like this approach, so it's what I'm doing in my experimental rewrite of bootstrap. Relevant code is here:

https://github.com/danielsdeleo/bootstrapper/blob/master/lib/bootstrapper/controller.rb

BTW, please don't use that repo in production, there's a ton of work-in-progress, options that don't work, etc.


-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§