| Server IP : 156.238.232.47 / Your IP : 216.73.216.150 Web Server : nginx/1.25.3 System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : www ( 1000) PHP Version : 8.3.25 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python2.7/site-packages/cloudinit/config/ |
Upload File : |
�
oB�]c @ sZ d Z d d l m Z d d l m Z e Z d d g Z d Z d Z d � Z d � Z
d
S( s�
Apt Pipelining
--------------
**Summary:** configure apt pipelining
This module configures apt's ``Acquite::http::Pipeline-Depth`` option, whcih
controls how apt handles HTTP pipelining. It may be useful for pipelining to be
disabled, because some web servers, such as S3 do not pipeline properly (LP:
#948461). The ``apt_pipelining`` config key may be set to ``false`` to disable
pipelining altogether. This is the default behavior. If it is set to ``none``,
``unchanged``, or ``os``, no change will be made to apt configuration and the
default setting for the distro will be used. The pipeline depth can also be
manually specified by setting ``apt_pipelining`` to a number. However, this is
not recommended.
**Internal name:** ``cc_apt_pipelining``
**Module frequency:** per instance
**Supported distros:** ubuntu, debian
**Config keys**::
apt_pipelining: <false/none/unchanged/os/number>
i����( t PER_INSTANCE( t utilt ubuntut debians+ /etc/apt/apt.conf.d/90cloud-init-pipeliningsQ //Written by cloud-init per 'apt_pipelining'
Acquire::http::Pipeline-Depth "%s";
c C s� t j | d d � } t | � j � j � } | d k rL t d | t � na | d
k r\ d S| g t d d � D] } t | � ^ qo k r� t | | t � n | j d | � d S( Nt apt_pipeliningt ost falset 0t nonet unchangedi i s% Invalid option for apt_pipelining: %s( R R s os( R t get_cfg_option_strt strt lowert stript write_apt_snippett DEFAULT_FILEt ranget warning( t _namet cfgt _cloudt logt _argst apt_pipe_valuet apt_pipe_value_st b( ( sF /usr/lib/python2.7/site-packages/cloudinit/config/cc_apt_pipelining.pyt handle2 s .c C s1 t | } t j | | � | j d | | � d S( s0 Writes f_name with apt pipeline depth 'setting'.s+ Wrote %s with apt pipeline depth setting %sN( t APT_PIPE_TPLR t
write_filet debug( t settingR t f_namet
file_contents( ( sF /usr/lib/python2.7/site-packages/cloudinit/config/cc_apt_pipelining.pyR A s
N( t __doc__t cloudinit.settingsR t cloudinitR t frequencyt distrosR R R R ( ( ( sF /usr/lib/python2.7/site-packages/cloudinit/config/cc_apt_pipelining.pyt <module> s