consul-template
consul-template copied to clipboard
Can you provide webhook for render template?
When rendering the template, I want to send an HTTP request as a Webook
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.