Created
June 2, 2016 18:21
-
-
Save nickanderson/f8cad26e361eb9b2e78307ae380515dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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