Multi-node chef run orchestration


#1

I have node1 and node2. Each node has chef-client running on it.
Is it possible that after chef-client run on node1 is complete, it can it start/trigger a chef run on node2?
Does chef have the ability to perform orchestration of runs on the basis of some triggers?
Another thing, I am trying to locate documentation for CHef’s Rest calls. Couldnt find any. I am using Chef 11 Open Source.
Any help/pointers on the above questions would be appreciated.
regards
mg


#2

No, Chef is not an orchestration system. If you upgrade to Chef Server 12 you could potentially use Push Jobs for this, or MCollective, Salt, etc. Many options, but you’ll need some kind of orchestration tool.

–Noah

On Jan 26, 2015, at 8:37 AM, M G meher03@hotmail.com wrote:

I have node1 and node2. Each node has chef-client running on it.

Is it possible that after chef-client run on node1 is complete, it can it start/trigger a chef run on node2?

Does chef have the ability to perform orchestration of runs on the basis of some triggers?

Another thing, I am trying to locate documentation for CHef’s Rest calls. Couldnt find any. I am using Chef 11 Open Source.

Any help/pointers on the above questions would be appreciated.

regards

mg


#3

I have done something similar by remotely running chef-client on node1 when a particular step is done on node1.

-Kapil

-----Original Message-----
From: Noah Kantrowitz [mailto:noah@coderanger.net]
Sent: Monday, January 26, 2015 11:42 AM
To: chef@lists.opscode.com
Subject: [chef] Re: Multi-node chef run orchestration

No, Chef is not an orchestration system. If you upgrade to Chef Server 12 you could potentially use Push Jobs for this, or MCollective, Salt, etc. Many options, but you’ll need some kind of orchestration tool.

–Noah

On Jan 26, 2015, at 8:37 AM, M G meher03@hotmail.com wrote:

I have node1 and node2. Each node has chef-client running on it.

Is it possible that after chef-client run on node1 is complete, it can it start/trigger a chef run on node2?

Does chef have the ability to perform orchestration of runs on the basis of some triggers?

Another thing, I am trying to locate documentation for CHef’s Rest calls. Couldnt find any. I am using Chef 11 Open Source.

Any help/pointers on the above questions would be appreciated.

regards

mg


#4

As noah said, vanilla chef wont do this, you can use any of the
orchestration tools. We wrote blender[1,2,3] for the same, you can use it
either with ssh or serf based drivers, and can control the order of chef
run execution either from a central controller node, or by events (like
chef run in node1 drops a serf event, and a serf handler in node2 respond
to that event and triggers another chef run).

regards
ranjib

[1]https://github.com/PagerDuty/blender
[2]https://github.com/PagerDuty/blender-chef
[3]https://github.com/PagerDuty/blender-serf

On Mon, Jan 26, 2015 at 8:37 AM, M G meher03@hotmail.com wrote:

I have node1 and node2. Each node has chef-client running on it.

Is it possible that after chef-client run on node1 is complete, it can it
start/trigger a chef run on node2?

Does chef have the ability to perform orchestration of runs on the basis
of some triggers?

Another thing, I am trying to locate documentation for CHef’s Rest calls.
Couldnt find any. I am using Chef 11 Open Source.

Any help/pointers on the above questions would be appreciated.

regards

mg