El 22/12/11 21:21, Eric Heydrick escribió:
On Thu, Dec 22, 2011 at 5:49 AM, Roberto C. Moranorcmorano@emergya.com wrote:
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
Note that if the run fails for any reason the run list is not saved as
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.
Thanks for your idea Eric :]
Roberto C. Morano
Área de Proyectos
Tlf: +34 954 51 75 77
Fax: +34 954 51 64 73