[chef] run recipe on multiple boxes using knife search


Chronological Thread 
  • From: Manoj Thakkar < >
  • To: " " < >
  • Subject: [chef] run recipe on multiple boxes using knife search
  • Date: Wed, 16 Oct 2013 14:03:22 -0700

Hi All,

I am facing a weird issue , i am not sure whats wrong.

This is what i am trying to do ,

* from all the chef slaves find slaves which has one particular role applied 
* run chef-client -o "recipe[xyz]" on those servers.

below is the command i run , The issue i face is the recipe gets applied on randomly on some servers and does not do anything on the other servers .... and this is random.... 

Is there anything i am missing here or anything i can do to enhance this.


 knife ssh "role:billing-qa-machine" "chef-client -o recipe[$product]" -x user -P password

Thanks
Manoj




Archive powered by MHonArc 2.6.16.

§