Execute recipes/jobs

Hi

I would like to know is there a way to execute recipes or jobs on multiple nodes without adding recipes under runlist?
Please anyone let me know can we do it

May i get any update

Hi,

Yes, we can achieve it using knife ssh. for more detail please refer: https://docs.chef.io/workstation/knife_ssh/

eg.

knife ssh 'name:*' 'sudo chef-client -o recipe[NAME_OF_RECIPE]'

1 Like

Thanks vivek,

May i know will it work on windows nodes ?

It will! You just use winrm instead of ssh:

https://docs.chef.io/workstation/knife_windows/

Thanks a lot benny . I will try

Thank again vivek