Created
November 11, 2014 14:32
-
-
Save neilhwatson/a14ed62315b5f9f96407 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| body common control | |
| { | |
| bundlesequence => { | |
| "main", | |
| }; | |
| } | |
| bundle agent main | |
| { | |
| vars: | |
| "a[0][class]" string => "any"; | |
| "a[0][command]" string => "/bin/true"; | |
| "a[1][class]" string => "linux"; | |
| "a[1][command]" string => "/bin/false"; | |
| "m" data => mergedata( a ); | |
| "i" slist => getindices( m ); | |
| reports: | |
| "i => [${i}]"; | |
| "class => ${m[${i}][class]}"; | |
| "command => ${m[${i}][command]}"; | |
| } | |
| neil@ettin ~/.cfagent/inputs $ cf-agent -Kf ./merge.cf | |
| R: class => ${cf_null} | |
| R: command => ${cf_null} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment