Skip to content

Instantly share code, notes, and snippets.

@jan-matejka
Created May 27, 2012 07:35
Show Gist options
  • Select an option

  • Save jan-matejka/2802633 to your computer and use it in GitHub Desktop.

Select an option

Save jan-matejka/2802633 to your computer and use it in GitHub Desktop.
#!/var/cfengine/bin/cf-agent -f
# vim: foldmethod=marker:foldmarker={,}
# version: cfengine-community-3.2.1-1
body common control {
bundlesequence => {
g,
};
}
bundle agent g {
vars:
"a[a]" slist => { 'kek', 'blek' };
"a[b]" slist => { 'A' };
"a[c]" slist => { "cf_null" };
'b' slist => { "@{a[a]}", "@{a[b]}", "@{a[c]}" };
reports:
debian::
"${b}"; # is this supposted to show "cf_null" ?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment