OS : Linux
PHP Version : 7.4.33
Software : Apache/2.4.6 (CentOS) PHP/7.4.33
Information System : Linux apprendre2 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Disable Function : ó
oBú]c @ sK d Z d d l Z d d l m Z d d l m Z e Z d Z d „ Z d S( s
Scripts Per Instance
--------------------
**Summary:** run per instance scripts
Any scripts in the ``scripts/per-instance`` directory on the datasource will
be run when a new instance is first booted. Scripts will be run in alphabetical
order. This module does not accept any config keys.
Some cloud platforms change instance-id if a significant change was made to
the system. As a result per-instance scripts will run again.
**Internal name:** ``cc_scripts_per_instance``
**Module frequency:** per instance
**Supported distros:** all
iÿÿÿÿN( t util( t PER_INSTANCEs per-instancec C s` t j j | j ƒ d t ƒ } y t j | ƒ Wn* t k
r[ | j d | t | ƒ ‚ n Xd S( Nt scriptss" Failed to run module %s (%s in %s)( t ost patht joint get_cpatht
SCRIPT_SUBDIRR t runpartst Exceptiont warning( t namet _cfgt cloudt logt _argst
runparts_path( ( sL /usr/lib/python2.7/site-packages/cloudinit/config/cc_scripts_per_instance.pyt handle' s
( t __doc__R t cloudinitR t cloudinit.settingsR t frequencyR R ( ( ( sL /usr/lib/python2.7/site-packages/cloudinit/config/cc_scripts_per_instance.pyt