- From: "Roberto C. Morano" <
>
- To:
- Subject: [chef] Re: Re: chef-client auto-registered run_list
- Date: Fri, 23 Dec 2011 12:37:52 +0100
El 22/12/11 21:21, Eric Heydrick escribió:
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.
It could be a good idea, but I'm looking for a way to do it from the server.
I mean, that way I would have to modify my nodes' chef-client config
every time I'd like to add something new to the "default run list"
instead of just having it automatically replicated on every new node.
This seems pretty unmaintenable for me.
I'm thinking about running "chef-client -j" to add a default run list
with only one recipe that retrieve the real "default run list" from, for
example, a databag in the server.
It still sounds hacky to me, but at least I wouldn't have to modify my
nodes' chef-client config every time manually, just once.
I think I'll look into chef-server's code to see if I can "plug" the
default run list somewhere.
-Eric
Thanks for your idea Eric :]
--
Roberto C. Morano
Área de Proyectos
Emergya Consultoría.
Tlf: +34 954 51 75 77
Fax: +34 954 51 64 73
http://www.emergya.es
Archive powered by MHonArc 2.6.16.