Tell other nodes after installation of a new node


#1

Hi,

I like to know if there is a possibility to tell a node that there is a
new backend node installed.
Example:
I like to tell my reverse proxy that chef has installed a new backend
Server and the new backend server should than added in the reverse proxy
configuration directly.

Right now, I only find the solution using search functions, but then I
have to wait until the next chef-client run of the reverse proxy.
Can I directly inform the reverse proxy after installing the backen node?

Kind regards,
Christian


#2

core chef does not provide anything to do this. but you can use other tools
to do the orchestration bit (i.e. remote notifications). For example, you
can install serf[1] on the backends and proxy servers. use chef handler for
serf[2] in backends to publish an event when they register, and serf agent
on reverse proxy can invoke a serf handler[3] that listen to this event and
invoke chef run.

[1]http://www.serfdom.io/docs/index.html
[2]https://github.com/PagerDuty/chef-handler-serf
[3]
https://github.com/ranjib/serfx#managing-long-running-tasks-via-serf-handlers

On Mon, Aug 18, 2014 at 2:56 AM, Christian Fröstl <
christian.froestl@nubon.com> wrote:

Hi,

I like to know if there is a possibility to tell a node that there is a
new backend node installed.
Example:
I like to tell my reverse proxy that chef has installed a new backend
Server and the new backend server should than added in the reverse proxy
configuration directly.

Right now, I only find the solution using search functions, but then I
have to wait until the next chef-client run of the reverse proxy.
Can I directly inform the reverse proxy after installing the backen node?

Kind regards,
Christian