consul-template icon indicating copy to clipboard operation
consul-template copied to clipboard

Can you provide webhook for render template?

Open yangzw1024 opened this issue 3 years ago • 1 comments

When rendering the template, I want to send an HTTP request as a Webook

yangzw1024 avatar Oct 26 '21 18:10 yangzw1024

Hey @yzhengwei, thanks for the question.

Consul-template doesn't have native support for webhooks, but as a general purpose command runner you can certainly set it up to fire a webhook. To fire a webhook when a specific template renders you could write a small shell script using curl or similar to call the webhook configured in a command or exec block option in that template's config.

eikenb avatar Oct 28 '21 20:10 eikenb