- From: Eric Heydrick <
>
- To:
- Subject: [chef] Re: chef-client auto-registered run_list
- Date: Thu, 22 Dec 2011 12:21:51 -0800
On Thu, Dec 22, 2011 at 5:49 AM, Roberto C. Morano
<
>
wrote:
>
Aloha,
>
>
I'm looking into, but I do not find the correct way (if there is any) to
>
change the default run list that nodes use.
>
>
I know I can add nodes with knife and at the same time assign them a run
>
list, but when clients are auto-registered (via chef-validator), the run
>
list is always empty by default.
>
>
I would like if there exist a way to do this without hardcoding it somewhere
>
deep in server's code :]
>
>
Thank you very much in advance.
You can set a node's run list by putting it in a json file and running
it with chef-client on the node. See
http://wiki.opscode.com/display/chef/Setting+the+run_list+in+JSON+during+run+time.
Note that if the run fails for any reason the run list is not saved as
of 0.10.
-Eric
Archive powered by MHonArc 2.6.16.