summaryrefslogtreecommitdiff
path: root/doc/examples/cloud-config-run-cmds.txt
diff options
context:
space:
mode:
authorMatt Fischer <matt@mattfischer.com>2016-05-17 20:55:32 +0000
committerMatt Fischer <matt@mattfischer.com>2016-05-17 20:55:32 +0000
commitea4bc2c603a9d964a918e01d00e39a851e979830 (patch)
treeabd151a96c2553a3a26bde469138606ee0d0c829 /doc/examples/cloud-config-run-cmds.txt
parent78cbc764486060928541b9dee6ce5779e622d1fa (diff)
downloadvyos-cloud-init-ea4bc2c603a9d964a918e01d00e39a851e979830.tar.gz
vyos-cloud-init-ea4bc2c603a9d964a918e01d00e39a851e979830.zip
Document improvements for runcmd/bootcmd
Note that runcmd runs only on first boot. Note that strings need to be quoted, not escaped. Switch bootcmd list text to use - not * like everything else.
Diffstat (limited to 'doc/examples/cloud-config-run-cmds.txt')
-rw-r--r--doc/examples/cloud-config-run-cmds.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/examples/cloud-config-run-cmds.txt b/doc/examples/cloud-config-run-cmds.txt
index 61b3bd63..3bb06864 100644
--- a/doc/examples/cloud-config-run-cmds.txt
+++ b/doc/examples/cloud-config-run-cmds.txt
@@ -5,12 +5,13 @@
# runcmd contains a list of either lists or a string
# each item will be executed in order at rc.local like level with
# output to the console
+# - runcmd only runs during the first boot
# - if the item is a list, the items will be properly executed as if
# passed to execve(3) (with the first arg as the command).
# - if the item is a string, it will be simply written to the file and
# will be interpreted by 'sh'
#
-# Note, that the list has to be proper yaml, so you have to escape
+# Note, that the list has to be proper yaml, so you have to quote
# any characters yaml would eat (':' can be problematic)
runcmd:
- [ ls, -l, / ]