chef-boneyard / opscode-pushy-server

Chef Push Jobs Server
https://docs.chef.io/push_jobs.html
Apache License 2.0
16 stars 10 forks source link

Execute a recipe on multiple nodes sequentially #211

Closed AnamikaN closed 4 years ago

AnamikaN commented 4 years ago

Hi All.

Recently we have integrated push-jobs with chef to execute recipes from workstation itself. But here my question is how to execute single recipe on multiple nodes sequentially using push-jobs?.

Generally we can execute a recipe on a node with push-jobs using below command knife job start ‘chef-client’ node-name (on one node). but if i use like below command

knife job start ‘chef-client’ Node1 Node2 Node3 … the recipe executing on multiple nodes but it is executing parallelly on the multiple nodes.

Thanks in Advance…

PrajaktaPurohit commented 4 years ago

Hey @AnamikaN We can create a feature request for this and have product schedule it. As of today we do not support sequential execution in a single job. The only way to run sequential execution is to run multiple jobs with the Chef-Infra-Push-Jobs-Server.

PrajaktaPurohit commented 4 years ago

Status: to be prioritized

AnamikaN commented 4 years ago

@PrajaktaPurohit Thank you for your response.