MOON
Server: Apache
System: Linux server.cny.com.sg 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: tissuegurucom (1020)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3.6/site-packages/cloudinit/config/__pycache__/cc_apt_pipelining.cpython-36.pyc
3

��b�
�@s�UdZddlmZddlmZddlmZmZddlm	Z	e	Z
ddgZdZd	Z
d
dded
�ee
dddddgd�Zeee�Zdd�Zdd�ZdS)z)Apt Pipelining: configure apt pipelining.�)�dedent)�util)�
MetaSchema�get_meta_doc)�PER_INSTANCEZubuntuZdebianz+/etc/apt/apt.conf.d/90cloud-init-pipeliningzQ//Written by cloud-init per 'apt_pipelining'
Acquire::http::Pipeline-Depth "%s";
Zcc_apt_pipeliningzApt PipeliningzConfigure apt pipelininga        This module configures apt's ``Acquite::http::Pipeline-Depth`` option,
        which 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).

        Value configuration options for this module are:

        * ``false`` (Default): disable pipelining altogether
        * ``none``, ``unchanged``, or ``os``: use distro default
        * ``<number>``: Manually specify pipeline depth. This is not recommended.zapt_pipelining: falsezapt_pipelining: nonezapt_pipelining: unchangedzapt_pipelining: oszapt_pipelining: 3)�id�name�title�description�distros�	frequencyZexamplescCst|jdd�}t|�j�j�}|dkr2td|t�n>|dkr>dS|dd�td	d
�D�krdt||t�n|jd|�dS)
NZapt_pipelining�osZfalse�0�none�	unchangedcSsg|]}t|��qS�)�str)�.0�brr�'/usr/lib/python3.6/cc_apt_pipelining.py�
<listcomp>Bszhandle.<locals>.<listcomp>r�z%Invalid option for apt_pipelining: %s)rrr
)�getr�lower�strip�write_apt_snippet�DEFAULT_FILE�rangeZwarning)�_nameZcfgZ_cloud�logZ_argsZapt_pipe_valueZapt_pipe_value_srrr�handle:sr cCs&t|}tj||�|jd||�dS)z0Writes f_name with apt pipeline depth 'setting'.z+Wrote %s with apt pipeline depth setting %sN)�APT_PIPE_TPLrZ
write_file�debug)ZsettingrZf_nameZ
file_contentsrrrrHsrN)�__doc__�textwraprZ	cloudinitrZcloudinit.config.schemarrZcloudinit.settingsrrrrr!�metar rrrrr�<module>s.