Server IP : 85.193.89.191 / Your IP : 18.227.190.202 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python2.7/site-packages/ansible/plugins/callback/ |
Upload File : |
� � �\c @` s� d d l m Z m Z m Z e Z d Z d d l Z d d l m Z d d l m Z d d l Z d d l Z y d d l Z e Z Wn e k r� e Z n Xd d l m Z d e f d � � YZ d S( i ( t absolute_importt divisiont print_functions� callback: foreman type: notification short_description: Sends events to Foreman description: - This callback will report facts and task events to Foreman https://theforeman.org/ - Before 2.4, if you wanted to use an ini configuration, the file must be placed in the same directory as this plugin and named foreman.ini - In 2.4 and above you can just put it in the main Ansible configuration file. version_added: "2.2" requirements: - whitelisting in configuration - requests (python library) options: url: description: URL to the Foreman server env: - name: FOREMAN_URL required: True default: http://localhost:3000 ini: - section: callback_foreman key: url ssl_cert: description: X509 certificate to authenticate to Foreman if https is used env: - name: FOREMAN_SSL_CERT default: /etc/foreman/client_cert.pem ini: - section: callback_foreman key: ssl_cert ssl_key: description: the corresponding private key env: - name: FOREMAN_SSL_KEY default: /etc/foreman/client_key.pem ini: - section: callback_foreman key: ssl_key verify_certs: description: - Toggle to decidewhether to verify the Foreman certificate. - It can be set to '1' to verify SSL certificates using the installed CAs or to a path pointing to a CA bundle. - Set to '0' to disable certificate checking. env: - name: FOREMAN_SSL_VERIFY default: 1 ini: - section: callback_foreman key: verify_certs N( t datetime( t defaultdict( t CallbackBaset CallbackModulec B` s� e Z d Z d Z d Z e Z i d d 6d d 6Z d Z d � Z d d d d � Z d � Z d � Z d � Z d � Z d � Z d � Z e d � Z d � Z d � Z d � Z d � Z d � Z RS( g @t notificationt foremans application/jsons Content-Typet Accepts %Y-%m-%d %H:%M:%S %fc C` s; t t | � j � t t � | _ t t j � � | _ d S( N( t superR t __init__R t listt itemst intt timet start_time( t self( ( sD /usr/lib/python2.7/site-packages/ansible/plugins/callback/foreman.pyR X s c C` sN t t | � j d | d | d | � | j d � | _ | j d � | j d � f | _ t | j d � � | _ | j � | _ t r� t t j j d � d � } | d k r� | j d � q� n | j d � | j j d � rJt j j | j d � s| j d | j d � n t j j | j d � sJ| j d | j d � qJn d S( Nt task_keyst var_optionst directt urlt ssl_certt ssl_keyt verify_certst .i i s( The `requests` python module is too old.s. The `requests` python module is not installed.s https://s FOREMAN_SSL_CERT %s not found.i s FOREMAN_SSL_KEY %s not found.( R R t set_optionst get_optiont FOREMAN_URLt FOREMAN_SSL_CERTt strt FOREMAN_SSL_VERIFYt _ssl_verifyt ssl_verifyt HAS_REQUESTSR t requestst __version__t splitt _disable_plugint startswitht ost patht exists( R R R R t requests_major( ( sD /usr/lib/python2.7/site-packages/ansible/plugins/callback/foreman.pyR ] s %! c C` s: t | _ | r&