[chef] Re: Re: Re: Ideas on kickstarting a node and auto-applying a role


Chronological Thread 
  • From: Paul Choi < >
  • To:
  • Subject: [chef] Re: Re: Re: Ideas on kickstarting a node and auto-applying a role
  • Date: Fri, 14 May 2010 11:37:24 -0700
  • Organization: Plaxo, Inc.

Ah, thank you! That's exactly what I need.

-Paul

On 5/14/10 11:34 AM, Bryan McLellan wrote:
On Fri, May 14, 2010 at 11:27 AM, Paul 
Choi< >
  wrote:
Adding a bit more...
One idea I have is, if it's possible:

After installing chef-client, the node should run a custom script that does
a POST to<chef server>/nodes/<nodename>:
{
  "run_list": [
    "role[a]",
    "role[c]"
  ]
}
You can pass a file containing JSON to chef-client with -j. This is
how I've bootstrapped vm-builder (Ubuntu JeOS) nodes using the
firstboot parameter.

Bryan





Archive powered by MHonArc 2.6.16.

§