+
    ˜qgjå  ã                   óÀ   a € R t0 t R t^ RIt^ RIHtHtHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHt ]P                  ! ]4      tRtRtR	R
RR.R]RR./t] ^ k R R ltR tR# )z0Apk Configure: Configures apk repositories file.N)Ú
temp_utilsÚ	templaterÚutil)ÚCloud)ÚConfig)Ú
MetaSchema)ÚPER_INSTANCEz%https://dl-cdn.alpinelinux.org/alpinea  ## template:jinja
#
# Created by cloud-init
#
# This file is written on first boot of an instance
#

{{ alpine_baseurl }}/{{ alpine_version }}/main
{% if community_enabled -%}
{{ alpine_baseurl }}/{{ alpine_version }}/community
{% endif -%}
{% if testing_enabled -%}
{% if alpine_version != 'edge' %}
#
# Testing - using with non-Edge installation may cause problems!
#
{% endif %}
{{ alpine_baseurl }}/edge/testing
{% endif %}
{% if local_repo != '' %}

#
# Local repo
#
{{ local_repo }}/{{ alpine_version }}
{% endif %}

ÚidÚcc_apk_configureÚdistrosÚalpineÚ	frequencyÚactivate_by_schema_keysÚ	apk_reposc          
      óL   € V ^8„  d   QhR\         R\        R\        R\        RR/# )é   ÚnameÚcfgÚcloudÚargsÚreturnN)Ústrr   r   Úlist)Úformats   "ÚC/usr/lib/python3/dist-packages/cloudinit/config/cc_apk_configure.pyÚ__annotate__r   >   s6   € ÷ 2Fñ 2F”ð 2Fœ6ð 2F¬%ð 2F´tð 2FÀñ 2Fó    c                óÔ  € VP                  R4      pV'       g   \        P                  RV 4       R# \        P                  ! VRR4      '       d   \        P                  RV 4       R# VP                  R4      pV'       g   \        P                  RV 4       R# VP                  R	4      pV'       g   \        P                  R
V 4       R# VP                  RR4      p\        WVV4       R# )a_  
Call to handle apk_repos sections in cloud-config file.

@param name: The module name "apk_configure" from cloud.cfg
@param cfg: A nested dict containing the entire cloud config contents.
@param cloud: The CloudInit object in use.
@param log: Pre-initialized Python logger object to use for logging.
@param _args: Any module arguments from cloud.cfg
r   z6Skipping module named %s, no 'apk_repos' section foundNÚpreserve_repositoriesFz8Skipping module named %s, 'preserve_repositories' is setÚalpine_repoz>Skipping module named %s, no 'alpine_repo' configuration foundÚversionz@Skipping module named %s, 'version' not specified in alpine_repoÚlocal_repo_base_urlÚ )ÚgetÚLOGÚdebugr   Úget_cfg_option_boolÚ_write_repositories_file)r   r   r   r   Úapk_sectionr   Úalpine_versionÚ
local_repos   &&&&    r   Úhandler+   >   sÈ   € ð —'‘'˜+Ó&€KßÜ�	‰	ØDÀdô	
ñ 	ô ×Ò Ð-DÀe×LÒLÜ�	‰	ØFÈô	
ñ 	ð
 —/‘/ -Ó0€KßÜ�	‰	ØLØô	
ñ 	ð !—_‘_ YÓ/€NßÜ�	‰	ØNØô	
ñ 	à—‘Ð!6¸Ó;€Jä˜[¸*ÖEr   c           
     óŠ  € RpV P                  R\        4      pRVRVRV P                  R4      RV P                  R4      RV/p\        P                  ! RR	R
7      pV^,          p\        P
                  ! V\        R7       \        P                  RV4       \        P                  ! WsV4       \        P                  ! V4       R# )a
  
Write the /etc/apk/repositories file with the specified entries.

@param alpine_repo: A nested dict of the alpine_repo configuration.
@param alpine_version: A string of the Alpine version to use.
@param local_repo: A string containing the base URL of a local repo.
z/etc/apk/repositoriesÚbase_urlÚalpine_baseurlr)   Úcommunity_enabledÚtesting_enabledr*   ztemplate_name-z.tmpl)ÚprefixÚsuffix)Úcontentz3Generating Alpine repository configuration file: %sN)r#   ÚDEFAULT_MIRRORr   Úmkstempr   Ú
write_fileÚREPOSITORIES_TEMPLATEr$   r%   r   Úrender_to_fileÚdel_file)r   r)   r*   Ú	repo_filer.   ÚparamsÚtfileÚtemplate_fns   &&&     r   r'   r'   s   s§   € ð (€Ià —_‘_ Z´Ó@€Nð 	˜.Ø˜.Ø˜[Ÿ_™_Ð-@ÓAØ˜;Ÿ?™?Ð+<Ó=Ø�jð€Fô ×ÒÐ&6¸wÔG€EØ˜•(€KÜ‡O‚O�KÔ)>Õ?ä‡I�IÐCÀYÔOÜ×Ò˜[°VÔ<ä‡M‚M�+Ör   c                ó@   € V ^8„  d   Qh/ ^ \         9   d
   \        ;R&   # )r   Úmeta)Ú__conditional_annotations__r   )r   s   "r   r   r      s    € × 6Ñ 6÷^ò „jñ ò_ 7r   )r@   Ú__doc__ÚloggingÚ	cloudinitr   r   r   Úcloudinit.cloudr   Úcloudinit.configr   Úcloudinit.config.schemar   Úcloudinit.settingsr   Ú	getLoggerÚ__name__r$   r4   r7   r?   r+   r'   r   )r@   s   @r   Ú<module>rJ      sr   øðö 7ã ç 1Ñ 1Ý !Ý #Ý .Ý +à×Ò˜Ó!€ð 9€ðÐ ð> 	Ð
Ø�ˆzØ�Ø ˜}ð	€ó õ2Fôjr   