Skip to content

Commit

Permalink
Add realname param to sensu_check_config
Browse files Browse the repository at this point in the history
  • Loading branch information
rodjek committed May 2, 2012
1 parent 9715955 commit 6eda3f0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/puppet/type/sensu_check_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ def initialize(*args)
end

newparam(:name) do
desc "Some unique name, not the name of the check."
end

newparam(:realname) do
desc "The name of the check"
end

Expand Down
9 changes: 9 additions & 0 deletions manifests/check.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@
$subscribers = []
) {

@@sensu_check_config { "${::fqdn}_${name}":
realname => $name,
command => $command,
handlers => $handlers,
interval => $interval,
subscribers => $subscribers,
}

sensu_check_config { $name:
realname => $name,
command => $command,
handlers => $handlers,
interval => $interval,
Expand Down

0 comments on commit 6eda3f0

Please sign in to comment.