Viewing File: /usr/lib/python2.7/site-packages/cloudinit/config/cc_scripts_per_instance.pyo

ó
oBú]c@sKdZddlZddlmZddlmZeZdZd„ZdS(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(tutil(tPER_INSTANCEsper-instancecCs`tjj|jƒdtƒ}ytj|ƒWn*tk
r[|jd|t|ƒ‚nXdS(Ntscriptss"Failed to run module %s (%s in %s)(	tostpathtjoint	get_cpatht
SCRIPT_SUBDIRRtrunpartst	Exceptiontwarning(tnamet_cfgtcloudtlogt_argst
runparts_path((sL/usr/lib/python2.7/site-packages/cloudinit/config/cc_scripts_per_instance.pythandle's
	
(	t__doc__Rt	cloudinitRtcloudinit.settingsRt	frequencyRR(((sL/usr/lib/python2.7/site-packages/cloudinit/config/cc_scripts_per_instance.pyt<module>s
Back to Directory File Manager