~harlowja/cloud-init/cloud-init-net-refactor

« back to all changes in this revision

Viewing changes to doc/examples/cloud-config-boot-cmds.txt

  • Committer: Matt Fischer
  • Date: 2016-05-17 20:55:32 UTC
  • Revision ID: matt@mattfischer.com-20160517205532-95ob2m38tyloj9ur
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.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
# bootcmd should really only be used for things that could not be
8
8
# done later in the boot process.  bootcmd is very much like
9
9
# boothook, but possibly with more friendly.
10
 
#  * bootcmd will run on every boot
11
 
#  * the INSTANCE_ID variable will be set to the current instance id.
12
 
#  * you can use 'cloud-init-boot-per' command to help only run once
 
10
# - bootcmd will run on every boot
 
11
# - the INSTANCE_ID variable will be set to the current instance id.
 
12
# - you can use 'cloud-init-boot-per' command to help only run once
13
13
bootcmd:
14
14
 - echo 192.168.1.130 us.archive.ubuntu.com > /etc/hosts
15
15
 - [ cloud-init-per, once, mymkfs, mkfs, /dev/vdb ]