Hello Chefs,
Is there any way to implement callbacks on Chef Server for notifications?
For example, when some node successfully execute cookbook, then
predefined action on server will be performed.
Thanks in advance.
Tetsu
Hello Chefs,
Is there any way to implement callbacks on Chef Server for notifications?
For example, when some node successfully execute cookbook, then
predefined action on server will be performed.
Thanks in advance.
Tetsu
You could use a remote file resouce in a recipe to hit a url that triggers
some action.
On Feb 16, 2012 9:49 PM, "tetsu soh" tetsu.soh@gmail.com wrote:
Hello Chefs,
Is there any way to implement callbacks on Chef Server for notifications?
For example, when some node successfully execute cookbook, then
predefined action on server will be performed.Thanks in advance.
Tetsu
There is also a pretty reasonable http_request resource documented at http://wiki.opscode.com/display/chef/Resources#Resources-HTTPRequest.
I'm not sure whether it's a good idea to make changes to chef-server directly. You might consider rolling a special purpose app to perform your business logic on the server's node.
Best,
Jeremy
On Friday, February 17, 2012 at 5:53 AM, Kyle Bader wrote:
You could use a remote file resouce in a recipe to hit a url that triggers some action.
On Feb 16, 2012 9:49 PM, "tetsu soh" <tetsu.soh@gmail.com (mailto:tetsu.soh@gmail.com)> wrote:Hello Chefs,
Is there any way to implement callbacks on Chef Server for notifications?
For example, when some node successfully execute cookbook, then
predefined action on server will be performed.Thanks in advance.
Tetsu
What are you wanting to change on server ? If you're trying to
trigger other runs/behavior in your environment there are a couple
ways you can do things like this. One is to simply set a node
attribute and search for that attribute on another machine. Another if
you're on platform is to write back to a data bag and use that as a
mutex.
You could write some custom sauce in a report handler to talk back to
whatever you like if need be.
Other solutions can be obtained using other orchestration tools that
sit on top of chef like noah/zookeeper, rundeck, etc.
On Fri, Feb 17, 2012 at 5:53 AM, Kyle Bader kyle.bader@gmail.com wrote:
You could use a remote file resouce in a recipe to hit a url that triggers
some action.On Feb 16, 2012 9:49 PM, "tetsu soh" tetsu.soh@gmail.com wrote:
Hello Chefs,
Is there any way to implement callbacks on Chef Server for notifications?
For example, when some node successfully execute cookbook, then
predefined action on server will be performed.Thanks in advance.
Tetsu