܍~c? UdZddlZddlmZddlmZddlmZmZddl m Z ddl m Z ddl mZmZdd lmZdd lmZd Zd d deegeedededggdZeed<eeZdZdede de dededdf dZdS)z"Scripts Vendor: Run vendor scriptsN)Logger)dedent)subputil)Cloud)Config) MetaSchema get_meta_doc) ALL_DISTROS) PER_INSTANCEaiOn select Datasources, vendors have a channel for the consumption of all supported user data types via a special channel called vendor data. Any scripts in the ``scripts/vendor`` directory in the datasource will be run when a new instance is first booted. Scripts will be run in alphabetical order. This module allows control over the execution of vendor data. cc_scripts_vendorzScripts VendorzRun vendor scriptszg vendor_data: enabled: true prefix: /usr/bin/ltrace ze vendor_data: enabled: true prefix: [timeout, 30] zr # Vendor data will not be processed vendor_data: enabled: false )idnametitle descriptiondistros frequencyexamplesactivate_by_schema_keysmetavendorrcfgcloudlogargsreturnc(tj|dt}t j|dg} tj||dS#t$r| d|t|wxYw)Nscripts) vendor_dataprefix) exe_prefixz"Failed to run module %s (%s in %s)) ospathjoin get_ipath_cur SCRIPT_SUBDIRrget_cfg_by_pathrrunparts Exceptionwarning)rrrrr runparts_pathr s D/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_vendor.pyhandler-Cs GLL y-M !#'@" E EF  m777777  0       s A(()B)__doc__r"loggingrtextwrapr cloudinitrrcloudinit.cloudrcloudinit.configrcloudinit.config.schemar r cloudinit.distrosr cloudinit.settingsr MODULE_DESCRIPTIONr__annotations__r&strlistr-r,r=s )((  !!!!!!######<<<<<<<<))))))++++++   !%}           . "=jB ,t    #(/5=A r<