Module Expr Str ImportFrom alias Import alias Assign NameStore NameLoad TryExcept body ImportFrom alias identifier ImportFrom alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body ClassDef bases NameLoad body Expr Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Str FunctionDef arguments args defaults body Expr Str If NameLoad body Return NameLoad Return TupleLoad NameLoad Str decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Return UnaryOpNot CompareEq Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr IfExp CompareIs NameLoad NameLoad ListLoad ListLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr IfExp CompareIs NameLoad NameLoad ListLoad NameLoad Assign AttributeStore NameLoad attr IfExp CompareIs NameLoad NameLoad ListLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Str NameLoad body Expr Str For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call NameLoad If NameLoad body Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list
N/A N/A 
Module for Sending Messages via XMPP (a.k.a. Jabber)

.. versionadded:: 2014.1.0

:depends:   - sleekxmpp>=1.3.1
            - pyasn1
            - pyasn1-modules
            - dnspython
:configuration: This module can be used by either passing a jid and password
    directly to send_message, or by specifying the name of a configuration
    profile in the minion config, minion pillar, or master config.

    For example:

    .. code-block:: yaml

        my-xmpp-login:
            xmpp.jid: myuser@jabber.example.org/resourcename
            xmpp.password: verybadpass

    The resourcename refers to the resource that is using this account. It is
    user-definable, and optional. The following configurations are both valid:

    .. code-block:: yaml

        my-xmpp-login:
            xmpp.jid: myuser@jabber.example.org/salt
            xmpp.password: verybadpass

        my-xmpp-login:
            xmpp.jid: myuser@jabber.example.org
            xmpp.password: verybadpass

 __future__ absolute_import N/A logging N/A HAS_LIBS False N/A N/A sleekxmpp ClientXMPP _ClientXMPP sleekxmpp.exceptions XMPPError N/A HAS_LIBS True N/A N/A N/A ImportError N/A _ClientXMPP N/A object N/A N/A 
        Fake class in order not to raise errors
         N/A N/A log N/A N/A logging getLogger __name__ N/A __virtualname__ xmpp N/A MUC_DEPRECATED Use of send mask waiters is deprecated. __virtual__ N/A N/A N/A N/A N/A 
    Only load this module if sleekxmpp is installed on this minion.
     N/A HAS_LIBS N/A N/A __virtualname__ N/A N/A False Module xmpp: required libraries failed to load N/A SleekXMPPMUC N/A N/A logging Filter N/A filter N/A N/A self record N/A N/A N/A N/A N/A N/A N/A record getMessage MUC_DEPRECATED N/A N/A SendMsgBot N/A _ClientXMPP N/A __init__ N/A N/A self jid password recipient msg N/A N/A N/A N/A N/A N/A super SendMsgBot self __init__ jid password N/A N/A self recipients N/A N/A recipient None N/A N/A recipient N/A N/A self rooms N/A N/A N/A self msg msg N/A N/A N/A self add_event_handler session_start N/A self start N/A create_multi N/A N/A cls jid password msg recipients rooms nick N/A None None SaltStack Bot N/A N/A 
        Alternate constructor that accept multiple recipients and rooms
         N/A obj N/A SendMsgBot jid password None msg N/A N/A obj recipients N/A N/A recipients None N/A recipients N/A N/A obj rooms N/A N/A rooms None N/A rooms N/A N/A obj nick nick N/A obj N/A classmethod start N/A N/A self event N/A N/A N/A N/A N/A self send_presence N/A N/A N/A self get_roster N/A recipient N/A self recipients N/A N/A N/A N/A self send_message mto recipient mbody N/A self msg mtype chat N/A room N/A self rooms N/A N/A N/A N/A N/A N/A self plugin N/A xep_0045 joinMUC room N/A self nick wait True N/A N/A N/A self send_message mto room mbody N/A self msg mtype groupchat N/A N/A N/A self disconnect wait True N/A N/A send_msg N/A N/A recipient message jid password profile N/A None None None N/A N/A 
    Send a message to an XMPP recipient. Designed for use in states.

    CLI Examples:

    .. code-block:: bash

        xmpp.send_msg 'admins@xmpp.example.com' 'This is a salt module test'             profile='my-xmpp-account'
        xmpp.send_msg 'admins@xmpp.example.com' 'This is a salt module test'             jid='myuser@xmpp.example.com/salt' password='verybadpass'
     N/A profile N/A N/A creds N/A N/A __salt__ N/A config.option profile N/A jid N/A N/A creds get xmpp.jid N/A password N/A N/A creds get xmpp.password N/A xmpp N/A SendMsgBot jid password recipient message N/A N/A N/A xmpp register_plugin xep_0030 N/A N/A N/A xmpp register_plugin xep_0199 N/A N/A N/A xmpp connect N/A N/A N/A N/A xmpp process block True N/A True N/A False N/A send_msg_multi N/A N/A message recipients rooms jid password nick profile N/A None None None None SaltStack Bot None N/A N/A 
    Send a message to an XMPP recipient, support send message to
    multiple recipients or chat room.

    CLI Examples:

    .. code-block:: bash

        xmpp.send_msg recipients=['admins@xmpp.example.com']             rooms=['secret@conference.xmpp.example.com']             'This is a salt module test'             profile='my-xmpp-account'
        xmpp.send_msg recipients=['admins@xmpp.example.com']             rooms=['secret@conference.xmpp.example.com']            'This is a salt module test'             jid='myuser@xmpp.example.com/salt' password='verybadpass'

     N/A handler N/A N/A logging root handlers N/A N/A N/A N/A handler addFilter N/A SleekXMPPMUC N/A profile N/A N/A creds N/A N/A __salt__ N/A config.option profile N/A jid N/A N/A creds get xmpp.jid N/A password N/A N/A creds get xmpp.password N/A xmpp N/A N/A SendMsgBot create_multi jid password message recipients recipients rooms rooms N/A rooms N/A N/A N/A N/A xmpp register_plugin xep_0045 N/A N/A N/A xmpp connect N/A N/A N/A N/A N/A N/A xmpp process block True N/A True N/A N/A N/A XMPPError N/A err N/A N/A N/A N/A log error Could not send message, error: %s err N/A N/A N/A N/A log error Could not connect to XMPP server N/A False N/A