summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-02-07 17:03:34 -0500
committerScott Moser <smoser@ubuntu.com>2011-02-07 17:03:34 -0500
commite285b1614b00c5689ac71ec9afcfa83d996b22c0 (patch)
tree54f9df3a9620def7a87106b8d618c00c35a2007e /doc
parent00ac0cfe971b1891b722455615df2230b0382567 (diff)
downloadvyos-cloud-init-e285b1614b00c5689ac71ec9afcfa83d996b22c0.tar.gz
vyos-cloud-init-e285b1614b00c5689ac71ec9afcfa83d996b22c0.zip
add 'bootcmd' like 'runcmd' to cloud-config syntax for running things early
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/cloud-config.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/examples/cloud-config.txt b/doc/examples/cloud-config.txt
index 8d47234d..22be848d 100644
--- a/doc/examples/cloud-config.txt
+++ b/doc/examples/cloud-config.txt
@@ -190,6 +190,16 @@ runcmd:
- [ wget, "http://slashdot.org", -O, /tmp/index.html ]
+# boot commands
+# default: none
+# this is very similar to runcmd above, but commands run very early
+# in the boot process, only slightly after a 'boothook' would run.
+# bootcmd should really only be used for things that could not be
+# done later in the boot process. bootcmd is very much like
+# boothook, but possibly with more friendly
+bootcmd:
+ - echo 192.168.1.130 us.archive.ubuntu.com > /etc/hosts
+
# cloud_config_modules:
# default:
# cloud_config_modules: