Run nodes run_list from Chef Server


#1

Hi Team,

Can we run nodes run_list from Chef Server by using API ? If yes, could you please provide chef server api’s url.

Thanks


#2

Do you mean you want to force a chef-client run on some machine?


#3

Yes, we should be able to make a API call to Chef Server to execute run list on specified node/nodes.


#4

Chef uses a pull-based model, there is no persistent command channel from the server to the clients. If you need this functionality, you need to run an orchestrator service. Chef provides the push jobs client/server system that does this, or there are alternatives such as rundeck. I’m sure others on this list could suggest more options.


#5

as kalliste says Chef uses pull-based model, but it also provides push jobs model to force client to execute some commands like ‘chef-client’ , that’s what i am using now. Here is the link : https://github.com/chef-cookbooks/push-jobs


#6

Can we use push jobs model on PROD chef servers which performs thousands of deployments(application code deployments through chef server) per day ?