summaryrefslogtreecommitdiff
path: root/doc/examples/cloud-config-archive-launch-index.txt
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-09-01 20:00:34 -0400
committerScott Moser <smoser@ubuntu.com>2012-09-01 20:00:34 -0400
commit3a35daa68ca7e6214be3f9c1e33a1cdde5f60eb4 (patch)
tree6ffb19dd525035cba407bdd8354a6832b78718e2 /doc/examples/cloud-config-archive-launch-index.txt
parent47a643296f6656bfda1ea13b5bc98dd4b60d7852 (diff)
parenta7bd5c448a6eda8b3d841f2dd5c73ed3956fe3c3 (diff)
downloadvyos-cloud-init-3a35daa68ca7e6214be3f9c1e33a1cdde5f60eb4.tar.gz
vyos-cloud-init-3a35daa68ca7e6214be3f9c1e33a1cdde5f60eb4.zip
improvements for launch index, one fix for cloud-archive
1. Docs for launch-index + examples 2. Tests for launch-index + data files 3. Fixing a bug with cloud-archive yaml types allowed (likes a tuple not a list for some reason) (LP: #1044594) 4. Setting the 'part' content-type if what we actually use is different. LP: #1044594
Diffstat (limited to 'doc/examples/cloud-config-archive-launch-index.txt')
-rw-r--r--doc/examples/cloud-config-archive-launch-index.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/examples/cloud-config-archive-launch-index.txt b/doc/examples/cloud-config-archive-launch-index.txt
new file mode 100644
index 00000000..e2ac2869
--- /dev/null
+++ b/doc/examples/cloud-config-archive-launch-index.txt
@@ -0,0 +1,30 @@
+#cloud-config-archive
+
+# This is an example of a cloud archive
+# format which includes a set of launch indexes
+# that will be filtered on (thus only showing
+# up in instances with that launch index), this
+# is done by adding the 'launch-index' key which
+# maps to the integer 'launch-index' that the
+# corresponding content should be used with.
+#
+# It is possible to leave this value out which
+# will mean that the content will be applicable
+# for all instances
+
+- type: foo/wark
+ filename: bar
+ content: |
+ This is my payload
+ hello
+ launch-index: 1 # I will only be used on launch-index 1
+- this is also payload
+- |
+ multi line payload
+ here
+-
+ type: text/upstart-job
+ filename: my-upstart.conf
+ content: |
+ whats this, yo?
+ launch-index: 0 # I will only be used on launch-index 0