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


Chronological Thread 
  • From: Bryan McLellan < >
  • To:
  • Subject: [chef] Re: Re: Ideas on kickstarting a node and auto-applying a role
  • Date: Fri, 14 May 2010 11:34:36 -0700

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.

§