diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2013-01-24 18:41:26 -0800 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2013-01-24 18:41:26 -0800 |
commit | 6fb6fe24d5ba185d42f2d7a82c3c54d26fea3392 (patch) | |
tree | 44154d0e09b265078bda33e85f171de55b11b48e /doc/examples/cloud-config-power-state.txt | |
parent | 6f0756e5501ae660b2173ff558867941ab963a42 (diff) | |
download | vyos-cloud-init-6fb6fe24d5ba185d42f2d7a82c3c54d26fea3392.tar.gz vyos-cloud-init-6fb6fe24d5ba185d42f2d7a82c3c54d26fea3392.zip |
Add docs which can be used on readthedocs.org
Include a new set of docs that can be used to
create a readthedocs.org site, which includes
examples, directory layout, capabilities and
such. This in-code documentation then allows
for readthedocs.org to create a website directly
from the cloud-init codebase.
Diffstat (limited to 'doc/examples/cloud-config-power-state.txt')
-rw-r--r-- | doc/examples/cloud-config-power-state.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/examples/cloud-config-power-state.txt b/doc/examples/cloud-config-power-state.txt new file mode 100644 index 00000000..59f062d0 --- /dev/null +++ b/doc/examples/cloud-config-power-state.txt @@ -0,0 +1,22 @@ +#cloud-config + +## poweroff or reboot system after finished +# default: none +# +# power_state can be used to make the system shutdown, reboot or +# halt after boot is finished. This same thing can be acheived by +# user-data scripts or by runcmd by simply invoking 'shutdown'. +# +# Doing it this way ensures that cloud-init is entirely finished with +# modules that would be executed, and avoids any error/log messages +# that may go to the console as a result of system services like +# syslog being taken down while cloud-init is running. +# +# delay: form accepted by shutdown. default is 'now'. other format +# accepted is +m (m in minutes) +# mode: required. must be one of 'poweroff', 'halt', 'reboot' +# message: provided as the message argument to 'shutdown'. default is none. +power_state: + delay: 30 + mode: poweroff + message: Bye Bye |