??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
σ
ΰUdac @` s d d l m Z m Z m Z e Z d Z d d l Z e Z y d d l
Z
Wn e k
rc e Z n Xd d l
m Z d e f d YZ d S( i ( t absolute_importt divisiont print_functionsΓ
callback: jabber
type: notification
short_description: post task events to a jabber server
description:
- The chatty part of ChatOps with a Hipchat server as a target
- This callback plugin sends status updates to a HipChat channel during playbook execution.
version_added: "2.2"
requirements:
- xmpp (python lib https://github.com/ArchipelProject/xmpppy)
options:
server:
description: connection info to jabber server
required: True
env:
- name: JABBER_SERV
user:
description: Jabber user to authenticate as
required: True
env:
- name: JABBER_USER
password:
description: Password for the user to the jabber server
required: True
env:
- name: JABBER_PASS
to:
description: chat identifier that will recieve the message
required: True
env:
- name: JABBER_TO
N( t CallbackBaset CallbackModulec B` sY e Z d Z d Z d Z e Z d d Z d Z d Z
d Z d Z d Z
RS(
g @t notificationt jabberc C` sΝ t t | j d | t s; | j j d t | _ n t j d | _
t j d | _ t j d | _ t j d | _
| j p€ | j p€ | j
p€ | j
d k rΙ t | _ | j j d n d S( Nt displaysu The required python xmpp library (xmpppy) is not installed. pip install git+https://github.com/ArchipelProject/xmpppyt JABBER_SERVt JABBER_USERt JABBER_PASSt JABBER_TOsc Jabber CallBack wants the JABBER_SERV, JABBER_USER, JABBER_PASS and JABBER_TO environment variables( t superR t __init__t HAS_XMPPt _displayt warningt Truet disabledt ost getenvt servt j_usert j_passt j_tot None( t selfR ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/callback/jabber.pyR
; s * c C` s¨ t j | j } t j | j d g } | j d | j d f | j | j | j d | j t j
| j | } | j d d | j
| | j d S( s Send messaget debugt serverif t resourcet typet chatN( t xmppt JIDR t ClientR t connectt autht getNodeR t getResourcet MessageR t setAttrt sendt
disconnect( R t msgt jidt clientt message( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/callback/jabber.pyt send_msgM s %
c C` s2 | j | j | j j | j | j | _ d S( N( t _clean_resultst _resultt _taskt actiont
_dump_resultsR ( R t result( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/callback/jabber.pyt v2_runner_on_okX s c C` s
| | _ d S( N( t task( R R7 t is_conditional( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/callback/jabber.pyt v2_playbook_on_task_start\ s c C` s' | | _ | j } | j d | d S( s( Display Playbook and play start messagess Ansible starting play: %sN( t playt nameR/ ( R R: R; ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/callback/jabber.pyt v2_playbook_on_play_start_ s c C` sΫ | j } t | j j } t } t } xO | D]G } | j | } | d d k r_ t } n | d d k r1 t } q1 q1 W| s | r΄ | j } | j d | | j | | f n# | j } | j d | | | f d S( Nt failuresi t unreachables2 %s: Failures detected
%s
Host: %s
Failed at:
%ss9 Great!
Playbook %s completed:
%s
Last task debug:
%s(
R: t sortedt processedt keyst Falset summarizeR R R/ R7 ( R t statsR; t hostsR= R> t ht st out( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/callback/jabber.pyt playbook_on_statse s
# N( t __name__t
__module__t CALLBACK_VERSIONt
CALLBACK_TYPEt
CALLBACK_NAMER t CALLBACK_NEEDS_WHITELISTR R
R/ R6 R9 R<