Server IP : 85.193.89.191 / Your IP : 18.216.36.75 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 : /proc/979/cwd/lib/python2.7/site-packages/ansible/plugins/callback/ |
Upload File : |
� � �\c @` sx d d l m Z m Z m Z e Z d Z d Z d d l Z d d l Z d d l Z d d l Z d d l Z y d d l Z e Z Wn e k r� e Z n Xy d d l Z e Z Wn e k r� e Z n Xd d l m Z m Z m Z d d l m Z d e f d � � YZ y d d l Z e Z Wn e k rAe Z e Z n Xd e f d � � YZ e Z d e f d � � YZ d S( i ( t absolute_importt divisiont print_functions~ callback: logentries type: notification short_description: Sends events to Logentries description: - This callback plugin will generate JSON objects and send them to Logentries via TCP for auditing/debugging purposes. - 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 logentries.ini - In 2.4 and above you can just put it in the main Ansible configuration file. version_added: "2.0" requirements: - whitelisting in configuration - certifi (python library) - flatdict (pytnon library), if you want to use the 'flatten' option options: api: description: URI to the Logentries API env: - name: LOGENTRIES_API default: data.logentries.com ini: - section: callback_logentries key: api port: description: Http port to use when connecting to the API env: - name: LOGENTRIES_PORT default: 80 ini: - section: callback_logentries key: port tls_port: description: Port to use when connecting to the API when TLS is enabled env: - name: LOGENTRIES_TLS_PORT default: 443 ini: - section: callback_logentries key: tls_port token: description: The logentries "TCP token" env: - name: LOGENTRIES_ANSIBLE_TOKEN required: True ini: - section: callback_logentries key: token use_tls: description: - Toggle to decidewhether to use TLS to encrypt the communications with the API server env: - name: LOGENTRIES_USE_TLS default: False type: boolean ini: - section: callback_logentries key: use_tls flatten: description: flatten complex data structures into a single dictionary with complex keys type: boolean default: False env: - name: LOGENTRIES_FLATTEN ini: - section: callback_logentries key: flatten s examples: > To enable, add this to your ansible.cfg file in the defaults block [defaults] callback_whitelist = logentries Either set the environment variables export LOGENTRIES_API=data.logentries.com export LOGENTRIES_PORT=10000 export LOGENTRIES_ANSIBLE_TOKEN=dd21fc88-f00a-43ff-b977-e3a4233c53af Or in the main Ansible config file [callback_logentries] api = data.logentries.com port = 10000 tls_port = 20000 use_tls = no token = dd21fc88-f00a-43ff-b977-e3a4233c53af flatten = False N( t to_bytest to_textt to_native( t CallbackBaset PlainTextSocketAppenderc B` s>