How to trigger chef-client on all nodes from my workstation

Posted by divyanshm on Server Fault See other posts from Server Fault or by divyanshm
Published on 2014-06-02T10:49:42Z Indexed on 2014/06/03 21:27 UTC
Read the original article Hit count: 209

Filed under:
|
|

I have 5 nodes and all of them have one setup cook-book in common.

Now I would like to add another task in this common cookbook that would configure SQL server for me on all the nodes. Is there a way/command to manually trigger this change across all clients right away?

I use azure VM's. All the nodes are Windows Server 2012 machines. I could do a

knife winrm machine-name chef-client -m -x username -P password

on all the machines, but i'm sure there should be a better way of doing this. I'm new to using chef, so I might be missing a very basic command here.

© Server Fault or respective owner

Related posts about Azure

Related posts about chef