~cloud-init-dev/cloud-init/trunk

« back to all changes in this revision

Viewing changes to doc/examples/cloud-config-power-state.txt

  • Committer: Scott Moser
  • Date: 2016-08-10 15:06:15 UTC
  • Revision ID: smoser@ubuntu.com-20160810150615-ma2fv107w3suy1ma
README: Mention move of revision control to git.

cloud-init development has moved its revision control to git.
It is available at 
  https://code.launchpad.net/cloud-init

Clone with 
  git clone https://git.launchpad.net/cloud-init
or
  git clone git+ssh://git.launchpad.net/cloud-init

For more information see
  https://git.launchpad.net/cloud-init/tree/HACKING.rst

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#cloud-config
2
 
 
3
 
## poweroff or reboot system after finished
4
 
# default: none
5
 
#
6
 
# power_state can be used to make the system shutdown, reboot or
7
 
# halt after boot is finished.  This same thing can be acheived by
8
 
# user-data scripts or by runcmd by simply invoking 'shutdown'.
9
 
10
 
# Doing it this way ensures that cloud-init is entirely finished with
11
 
# modules that would be executed, and avoids any error/log messages
12
 
# that may go to the console as a result of system services like
13
 
# syslog being taken down while cloud-init is running.
14
 
#
15
 
# If you delay '+5' (5 minutes) and have a timeout of
16
 
# 120 (2 minutes), then the max time until shutdown will be 7 minutes.
17
 
# cloud-init will invoke 'shutdown +5' after the process finishes, or
18
 
# when 'timeout' seconds have elapsed.
19
 
#
20
 
# delay: form accepted by shutdown.  default is 'now'. other format
21
 
#        accepted is +m (m in minutes)
22
 
# mode: required. must be one of 'poweroff', 'halt', 'reboot'
23
 
# message: provided as the message argument to 'shutdown'. default is none.
24
 
# timeout: the amount of time to give the cloud-init process to finish
25
 
#          before executing shutdown.
26
 
# condition: apply state change only if condition is met.
27
 
#            May be boolean True (always met), or False (never met),
28
 
#            or a command string or list to be executed.
29
 
#            command's exit code indicates:
30
 
#               0: condition met
31
 
#               1: condition not met
32
 
#            other exit codes will result in 'not met', but are reserved
33
 
#            for future use.
34
 
#
35
 
power_state:
36
 
 delay: "+30"
37
 
 mode: poweroff
38
 
 message: Bye Bye
39
 
 timeout: 30
40
 
 condition: True