From ce74a2bbbd75bd6c3cd3f8cea89b6a1aa428c030 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Fri, 18 Jun 2010 00:49:01 -0400 Subject: doc: add mention of cloud-boothook to documentation --- doc/userdata.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc') diff --git a/doc/userdata.txt b/doc/userdata.txt index a1873424..00c16b25 100644 --- a/doc/userdata.txt +++ b/doc/userdata.txt @@ -48,6 +48,18 @@ finds. However, certain types of user-data are handled specially. Content is placed into a file in /etc/init, and will be consumed by upstart as any other upstart job. + * Cloud Boothook + begins with #cloud-boothook or Content-Type: text/cloud-boothook + + This content is "boothook" data. It is stored in a file under + /var/lib/cloud and then executed immediately. + + This is the earliest "hook" available. Note, that there is no + mechanism provided for running only once. The boothook must take + care of this itself. It is provided with the instance id in the + environment variable "INSTANCE_ID". This could be made use of to + provide a 'once-per-instance' + === Examples === There are examples in the examples subdirectory. Additionally, the 'tools' directory contains 'write-mime-multipart', -- cgit v1.2.3