Send events from webhook api

salt.engines.webhook.start(address=None, port=5000, ssl_crt=None, ssl_key=None)

Api to listen for webhooks to send to the reactor.

Implement the webhook behavior in an engine. rest_cherrypy Webhook docs

Unlike the rest_cherrypy Webhook, this is only an unauthenticated webhook endpoint. If an authenticated webhook endpoint is needed, use the salt-api webhook which runs on the master and authenticates through eauth.


Unauthenticated endpoint

This engine sends webhook calls to the event stream. If the engine is running on a minion with file_client: local the event is sent to the minion event stream. Otherwise it is sent to the master event stream.

Example Config

  - webhook: {}
  - webhook:
      port: 8000
      ssl_crt: /etc/pki/tls/certs/localhost.crt
      ssl_key: /etc/pki/tls/certs/localhost.key