cloud-init/upstart/cloud-run-user-script.conf
Scott Moser e4275234c1 make cloud-config modules configurable by cloud-config
The list of cloud-config modules is now kept in cloud config itself.
There is a builtin list in cloudinit, which is overrideable by 
 /etc/cloud/cloud.cfg or user data cloud-config.

This should make the modules more easily added or removed (as no code
needs to be edited now)

Basic summary of changes:
 - move CloudConfig.py -> cloudinit/CloudConfig/__init__.py
 - split cloud-config modules into their own files named
   cloudinit/CloudConfig/cc_<name>.py
 - remove all the upstart/cloud-config-* scripts, replacing them with
   upstart/cloud-config.conf
2010-06-17 22:22:39 -04:00

15 lines
451 B
Plaintext

# cloud-run-user-script - runs user scripts found in user-data, that are
# stored in /var/lib/cloud/scripts by the initial cloudinit upstart job
description "execute cloud user scripts"
start on (stopped rc RUNLEVEL=[2345] and stopped cloud-config)
console output
task
script
sdir=/var/lib/cloud/data/scripts
[ -d "$sdir" ] || exit 0
exec cloud-init-run-module once-per-instance user-scripts execute \
run-parts --regex '.*' "$sdir"
end script