Orchestrating more than one node using Chef

If you want to provision or update more than one node with Chef, there are two possibilities to do this.

  • Pull on each agent. You can connect via ssh to each client and call:
$ sudo chef-client
  • Push to each agent. You can connect via ssh to Chef server and call:
$ knife ssh -x user -P password 'name:(name-regex-of-your-clients)' 'sudo chef-client'

This will provision all clients which match regular expression specified in name attribute.