Skip to content

Instantly share code, notes, and snippets.

@nickanderson
Created June 2, 2016 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickanderson/f8cad26e361eb9b2e78307ae380515dc to your computer and use it in GitHub Desktop.
Save nickanderson/f8cad26e361eb9b2e78307ae380515dc to your computer and use it in GitHub Desktop.
bundle agent main
{
methods:
"" usebundle => "HSLinux:append_hell";
}
body file control
{
inputs => { "$(sys.libdir)/stdlib.cf" };
namespace => "HSLinux";
}
bundle agent append_hell
{
files:
any::
"/tmp/whatever-$(sys.fqhost)"
edit_line => default:append_if_no_line("APPEND=HELL"),
classes => default:results("namespace", "added_ready");
commands:
HSLinux:added_ready_repaired::
"/bin/true" classes => default:if_ok("ran_true");
reports:
DEBUG|DEBUG_append_hell::
"Considering: /tmp/whatever-$(sys.fqhost)";
HSLinux:ran_true::
"I ran true to discover the append ever hell.";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment