Blame doc/examples/cloud-config-boot-cmds.txt
|
Packit Service |
a04d08 |
#cloud-config
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
# boot commands
|
|
Packit Service |
a04d08 |
# default: none
|
|
Packit Service |
a04d08 |
# this is very similar to runcmd, but commands run very early
|
|
Packit Service |
a04d08 |
# in the boot process, only slightly after a 'boothook' would run.
|
|
Packit Service |
a04d08 |
# bootcmd should really only be used for things that could not be
|
|
Packit Service |
a04d08 |
# done later in the boot process. bootcmd is very much like
|
|
Packit Service |
a04d08 |
# boothook, but possibly with more friendly.
|
|
Packit Service |
a04d08 |
# - bootcmd will run on every boot
|
|
Packit Service |
a04d08 |
# - the INSTANCE_ID variable will be set to the current instance id.
|
|
Packit Service |
a04d08 |
# - you can use 'cloud-init-per' command to help only run once
|
|
Packit Service |
a04d08 |
bootcmd:
|
|
Packit Service |
11b429 |
- echo 192.168.1.130 us.archive.ubuntu.com >> /etc/hosts
|
|
Packit Service |
11b429 |
- [ cloud-init-per, once, mymkfs, mkfs, /dev/vdb ]
|