Skip to content

Instantly share code, notes, and snippets.

@skreuzer
Created January 31, 2015 16:13
Show Gist options
  • Save skreuzer/00629d18c444db52df46 to your computer and use it in GitHub Desktop.
Save skreuzer/00629d18c444db52df46 to your computer and use it in GitHub Desktop.
body common control
{
bundlesequence => { "blackout" };
}
body agent control
{
abortclasses => { "abort_cfagent" };
}
bundle agent blackout
{
vars:
any::
"blackout_file" string => "/tmp/cf_blackout";
classes:
"abort_cfagent" expression => fileexists("$(blackout_file)"),
comment => "Abort execution of cf-agent";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment