From 5b246428dcef8516f208708a191bdacb6a78d6e6 Mon Sep 17 00:00:00 2001 From: Jaime Fullaondo Date: Thu, 2 Jun 2016 11:38:30 -0400 Subject: [PATCH] [http_check] name is a compulsory element, adding to manifest. --- manifests/integrations/http_check.pp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manifests/integrations/http_check.pp b/manifests/integrations/http_check.pp index 38f59adc..e6767a62 100644 --- a/manifests/integrations/http_check.pp +++ b/manifests/integrations/http_check.pp @@ -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, @@ -74,6 +77,7 @@ # # class datadog_agent::integrations::http_check ( + $name = undef, $url = undef, $username = undef, $password = undef, @@ -92,6 +96,7 @@ if !$instances and $url { $_instances = [{ + 'name' => $name, 'url' => $url, 'username' => $username, 'password' => $password,