summaryrefslogtreecommitdiff
path: root/doc/examples/cloud-config-power-state.txt
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-03-14 14:16:49 -0400
committerScott Moser <smoser@ubuntu.com>2016-03-14 14:16:49 -0400
commit92db1b884bf34339a4536a20123c45b01c9c49ce (patch)
tree22be0de3d0496212d26015c3b30423da9338aa5c /doc/examples/cloud-config-power-state.txt
parent91ccf1b55b5b79694449446b029dd7c4570517a5 (diff)
parent72f826bff694b612d54b177635ca7e0dc83aed2f (diff)
downloadvyos-cloud-init-92db1b884bf34339a4536a20123c45b01c9c49ce.tar.gz
vyos-cloud-init-92db1b884bf34339a4536a20123c45b01c9c49ce.zip
merge with trunk
Diffstat (limited to 'doc/examples/cloud-config-power-state.txt')
-rw-r--r--doc/examples/cloud-config-power-state.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/examples/cloud-config-power-state.txt b/doc/examples/cloud-config-power-state.txt
index 8df14366..b470153d 100644
--- a/doc/examples/cloud-config-power-state.txt
+++ b/doc/examples/cloud-config-power-state.txt
@@ -23,9 +23,18 @@
# message: provided as the message argument to 'shutdown'. default is none.
# timeout: the amount of time to give the cloud-init process to finish
# before executing shutdown.
+# condition: apply state change only if condition is met.
+# May be boolean True (always met), or False (never met),
+# or a command string or list to be executed.
+# command's exit code indicates:
+# 0: condition met
+# 1: condition not met
+# other exit codes will result in 'not met', but are reserved
+# for future use.
#
power_state:
delay: "+30"
mode: poweroff
message: Bye Bye
timeout: 30
+ condition: True