• Scott Moser's avatar
    power_state: support 'condition' argument · ba3e59cb
    Scott Moser authored
      
      if 'condition' is provided to config in power_state, then
      consult it before powering off.
      
      This allows the user to shut down only if a condition is met, and
      leave the system in a debuggable state otherwise.
      
      An example is as simple as:
       power_state:
         mode: poweroff
         condition: ['sh', '-c', '[ -f /disable-poweroff ]']
    ba3e59cb
Name
Last commit
Last update
..
config Loading commit data...
distros Loading commit data...
filters Loading commit data...
handlers Loading commit data...
mergers Loading commit data...
reporting Loading commit data...
sources Loading commit data...
__init__.py Loading commit data...
cloud.py Loading commit data...
cs_utils.py Loading commit data...
ec2_utils.py Loading commit data...
helpers.py Loading commit data...
importer.py Loading commit data...
log.py Loading commit data...
netinfo.py Loading commit data...
patcher.py Loading commit data...
registry.py Loading commit data...
safeyaml.py Loading commit data...
settings.py Loading commit data...
signal_handler.py Loading commit data...
ssh_util.py Loading commit data...
stages.py Loading commit data...
templater.py Loading commit data...
type_utils.py Loading commit data...
url_helper.py Loading commit data...
user_data.py Loading commit data...
util.py Loading commit data...
version.py Loading commit data...