HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //lib/python3.6/site-packages/cloudinit/config/__pycache__/cc_scripts_vendor.cpython-36.pyc
3

\�me+	�
@s�UdZddlZddlZddlmZddlmZmZddlm	Z	ddl
mZddlm
Z
mZddlmZdd	lmZd
Zddd
eegeed�ed�ed�ggd�Ze
ee�Zeje�ZdZeee	edd�dd�ZdS)z"Scripts Vendor: Run vendor scripts�N)�dedent)�subp�util)�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.
Zcc_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
            )�id�name�title�descriptionZdistrosZ	frequencyZexamplesZactivate_by_schema_keysZvendor)r�cfg�cloud�args�returncCs`tjj|j�dt�}tj|dg�}ytj||d�Wn&t	k
rZt
jd|t|��YnXdS)N�scripts�vendor_data�prefix)Z
exe_prefixz"Failed to run module %s (%s in %s))rr)�os�path�joinZ
get_ipath_cur�
SCRIPT_SUBDIRrZget_cfg_by_pathrZrunparts�	Exception�LOGZwarning)rrrrZ
runparts_pathr�r�'/usr/lib/python3.6/cc_scripts_vendor.py�handleDsr)�__doc__Zloggingr�textwraprZ	cloudinitrrZcloudinit.cloudrZcloudinit.configrZcloudinit.config.schemarrZcloudinit.distrosr	Zcloudinit.settingsr
ZMODULE_DESCRIPTION�metaZ	getLogger�__name__rr�str�listrrrrr�<module>s6