Skip to content

Instantly share code, notes, and snippets.

@tysonmote
Created August 1, 2013 20:12
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 tysonmote/6134807 to your computer and use it in GitHub Desktop.
Save tysonmote/6134807 to your computer and use it in GitHub Desktop.
CFEngine policy files:
bundle common env {
vars:
"hosts" slist => { "foo", "bar" };
}
...
bundle agent handle_hosts {
reports:
cfengine::
"host: $(env.hosts)";
}
Output:
cf3> -> R: host: $(env.hosts)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment