Skip to content

Commit

Permalink
[http_check] name is a compulsory element, adding to manifest.
Browse files Browse the repository at this point in the history
  • Loading branch information
truthbk committed Jun 2, 2016
1 parent 1dcfe95 commit 5b24642
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/integrations/http_check.pp
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,19 @@
# Sample Usage:
#
# class { 'datadog_agent::integrations::http_check':
# name => 'google',
# url => 'http://www.google.com/',
# }
#
# class { 'datadog_agent::integrations::http_check':
# name => 'local',
# url => 'http://localhost/',
# headers => ['Host: stan.borbat.com', 'DNT: true'],
# tags => ['production', 'wordpress'],
# }
#
# class { 'datadog_agent::integrations::http_check':
# name => 'localhost-9001',
# url => 'http://localhost:9001/',
# timeout => 5,
# threshold => 1,
Expand All @@ -74,6 +77,7 @@
#
#
class datadog_agent::integrations::http_check (
$name = undef,
$url = undef,
$username = undef,
$password = undef,
Expand All @@ -92,6 +96,7 @@

if !$instances and $url {
$_instances = [{
'name' => $name,
'url' => $url,
'username' => $username,
'password' => $password,
Expand Down

0 comments on commit 5b24642

Please sign in to comment.