salt.returners.xmpp_return

Return salt data via xmpp

depends

sleekxmpp >= 1.3.1

The following fields can be set in the minion conf file:

xmpp.jid (required)
xmpp.password (required)
xmpp.recipient (required)
xmpp.profile (optional)

Alternative configuration values can be used by prefacing the configuration. Any values not found in the alternative configuration will be pulled from the default location:

xmpp.jid
xmpp.password
xmpp.recipient
xmpp.profile

XMPP settings may also be configured as:

xmpp:
    jid: [email protected]/resource
    password: password
    recipient: [email protected]

alternative.xmpp:
    jid: [email protected]/resource
    password: password
    recipient: [email protected]

xmpp_profile:
    xmpp.jid: [email protected]/resource
    xmpp.password: password

xmpp:
    profile: xmpp_profile
    recipient: [email protected]

alternative.xmpp:
    profile: xmpp_profile
    recipient: [email protected]

To use the XMPP returner, append '--return xmpp' to the salt command.

salt '*' test.ping --return xmpp

To use the alternative configuration, append '--return_config alternative' to the salt command.

New in version 2015.5.0.

salt '*' test.ping --return xmpp --return_config alternative

To override individual configuration items, append --return_kwargs '{"key:": "value"}' to the salt command.

New in version 2016.3.0.

salt '*' test.ping --return xmpp --return_kwargs '{"recipient": "[email protected]"}'
class salt.returners.xmpp_return.SendMsgBot(jid, password, recipient, msg)
start(event)

salt.returners.xmpp_return.returner(ret)

Send an xmpp message with the data

© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/returners/all/salt.returners.xmpp_return.html