??????????????
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ºddlmZmZmZeZdZddlZddlZddl Z ddl j Z ddl mZmZddlmZmZddlmZeƒZdefd„ƒYZdS( i(tabsolute_importtdivisiontprint_functionsa connection: buildah short_description: Interact with an existing buildah container description: - Run commands or put/fetch files to an existing container using buildah tool. author: Tomas Tomecek (ttomecek@redhat.com) version_added: 2.4 options: remote_addr: description: - The ID of the container you want to access. default: inventory_hostname vars: - name: ansible_host # keyword: # - name: hosts remote_user: description: - User specified via name or ID which is used to execute commands inside the container. ini: - section: defaults key: remote_user env: - name: ANSIBLE_REMOTE_USER vars: - name: ansible_user # keyword: # - name: remote_user N(tto_bytest to_native(tConnectionBasetensure_connect(tDisplayt ConnectioncB`steZdZdZeZd„Zd„Zd d d„Z d„Z e d e d„ƒZ d„Zd„Zd „ZRS( si This is a connection plugin for buildah: it uses buildah binary to interact with the containers tbuildahcO`sStt|ƒj||||Ž|jj|_t|_d|_ |jj |_ dS(N( tsuperRt__init__t _play_contextt remote_addrt _container_idtFalset _connectedtNonet _mount_pointt remote_usertuser(tselft play_contextt new_stdintargstkwargs((sF/usr/lib/python2.7/site-packages/ansible/plugins/connection/buildah.pyR Cs   cC`s*|jddt|jddƒgƒdS(Ntconfigs--user=terrorstsurrogate_or_strict(t_buildahRR(R((sF/usr/lib/python2.7/site-packages/ansible/plugins/connection/buildah.pyt _set_userNsc C`sæd|d|jg}|r(||7}ng|D]}t|ddƒ^q/}tjd|fd|jƒtj|dtdtjd tjd tjƒ}|jd |ƒ\}}t|ddƒ}t|ddƒ}|j ||fS( s run buildah executable :param cmd: buildah's command to execute (str) :param cmd_args: list of arguments to pass to the command (list of str/bytes) :param in_data: data passed to buildah's stdin :return: return code, stdout, stderr R s--RRsRUN %sthosttshelltstdintstdouttstderrtinput( RRtdisplaytvvvt subprocesstPopenRtPIPEt communicatet returncode( Rtcmdtcmd_argstin_datat local_cmdtitpR"R#((sF/usr/lib/python2.7/site-packages/ansible/plugins/connection/buildah.pyRQs  %cC`sjtt|ƒjƒ|jdƒ\}|_}|jjƒ|_tjd|j||fƒt|_ dS(s no persistent connection is being maintained, mount container's filesystem so we can easily access it tmountsMOUNTPOINT %s RC %s STDERR %rN( R Rt_connectRRtstripR%tvvvvvtTrueR(RtrcR#((sF/usr/lib/python2.7/site-packages/ansible/plugins/connection/buildah.pyR3hs cC`stt|ƒj|d|d|ƒtjt|ddƒƒ}|jd||ƒ\}}}tjd||fƒ|||fS(s@ run specified command in a running OCI container using buildah R.tsudoableRRtrunsSTDOUT %r STDERR %r( R Rt exec_commandtshlextsplitRRR%R5(RR,R.R8t cmd_args_listR7R"R#((sF/usr/lib/python2.7/site-packages/ansible/plugins/connection/buildah.pyR:ss "cC`s~tt|ƒj||ƒtjd||fd|jƒ|jt|ddƒ}tj t|ddƒt|ddƒƒdS(sH Place a local file located in 'in_path' inside container at 'out_path' s PUT %s TO %sRRRN( R Rtput_fileR%R&RRRtshutiltcopyfile(Rtin_pathtout_patht real_out_path((sF/usr/lib/python2.7/site-packages/ansible/plugins/connection/buildah.pyR>€s  cC`s~tt|ƒj||ƒtjd||fd|jƒ|jt|ddƒ}tj t|ddƒt|ddƒƒdS(sS obtain file specified via 'in_path' from the container and place it at 'out_path' sFETCH %s TO %sRRRN( R Rt fetch_fileR%R&RRRR?R@(RRARBt real_in_path((sF/usr/lib/python2.7/site-packages/ansible/plugins/connection/buildah.pyRD‘s  cC`sRtt|ƒjƒ|jdƒ\}}}tjd|||fƒt|_dS(s unmount container's filesystem tumountsRC %s STDOUT %r STDERR %rN(R RtcloseRR%R5RR(RR7R"R#((sF/usr/lib/python2.7/site-packages/ansible/plugins/connection/buildah.pyRGœsN(t__name__t __module__t__doc__t transportR6thas_pipeliningR RRRR3RRR:R>RDRG(((sF/usr/lib/python2.7/site-packages/ansible/plugins/connection/buildah.pyR:s    (t __future__RRRttypet __metaclass__t DOCUMENTATIONR;R?R'tansible.constantst constantstCtansible.module_utils._textRRtansible.plugins.connectionRRtansible.utils.displayRR%R(((sF/usr/lib/python2.7/site-packages/ansible/plugins/connection/buildah.pyt s