Skip to content

Instantly share code, notes, and snippets.

@rpetre
Created November 2, 2012 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rpetre/4000674 to your computer and use it in GitHub Desktop.
Save rpetre/4000674 to your computer and use it in GitHub Desktop.
duplicate selection of variable
infra:~ # cf-agent -KI
!! Duplicate selection of value for variable "missing" in scope dead_hosts
!! Rule from /var/cfengine/inputs/actions/update.cf at/before line 38
!! Duplicate selection of value for variable "missing" in scope dead_hosts
!! Rule from /var/cfengine/inputs/actions/update.cf at/before line 38
-------------------
bundle agent dead_hosts {
vars:
"delay" int => "24";
"missing" slist => { hostsseen ("$(delay)","notseen","name") };
reports:
cfengine3::
"I haven't seen $(missing) for the last $(delay) hours!"
action => if_elapsed("240"); # every 4h
}
-----------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment