diff --git a/manifests/integrations/http_check.pp b/manifests/integrations/http_check.pp index 73189608..4f1c3155 100644 --- a/manifests/integrations/http_check.pp +++ b/manifests/integrations/http_check.pp @@ -185,6 +185,8 @@ $check_certificate_expiration = true, $days_warning = undef, $days_critical = undef, + Optional[Boolean] $check_hostname = undef, + Optional[String] $ssl_server_name = undef, $headers = [], $allow_redirects = true, $tags = [], @@ -217,6 +219,8 @@ 'check_certificate_expiration' => $check_certificate_expiration, 'days_warning' => $days_warning, 'days_critical' => $days_critical, + 'check_hostname' => $check_hostname, + 'ssl_server_name' => $ssl_server_name, 'headers' => $headers, 'allow_redirects' => $allow_redirects, 'tags' => $tags, diff --git a/templates/agent-conf.d/http_check.yaml.erb b/templates/agent-conf.d/http_check.yaml.erb index 492e0063..30ebdbb2 100644 --- a/templates/agent-conf.d/http_check.yaml.erb +++ b/templates/agent-conf.d/http_check.yaml.erb @@ -71,6 +71,12 @@ instances: <% if instance['days_critical'] -%> days_critical: <%= instance['days_critical'] %> <% end -%> +<% if instance['check_hostname'] -%> + check_hostname: <%= instance['check_hostname'] %> +<% end -%> +<% if instance['ssl_server_name'] -%> + ssl_server_name: <%= instance['ssl_server_name'] %> +<% end -%> <% end -%> <% end -%> <% if instance['headers'] and ! instance['headers'].empty? -%>