Skip to content

Commit

Permalink
Allow arbitrary probe config values
Browse files Browse the repository at this point in the history
This changes the statically configured options for binary and step to
allow configuring any probe configuration that is passed in the hash by
the user.  This is needed for probes like AnotherDNS that have no binary
option, but have other useful options.
  • Loading branch information
Clayton O'Neill committed Oct 17, 2014
1 parent 6ea81b6 commit 2223fb5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions templates/probes.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
# THIS FILE IS MANAGED BY PUPPET

<% probes.each do |probe| -%>
+ <%= probe['name'] %>
binary = <%= probe['binary'] %>
step = <%= probe['step'] %>
+ <%= probe.delete('name') %>
<% probe.each_pair do |k,v| -%>
<%= k %> = <%= v %>
<% end -%>

<% end -%>

0 comments on commit 2223fb5

Please sign in to comment.