diff --git a/spec/classes/datadog_agent_reports_spec.rb b/spec/classes/datadog_agent_reports_spec.rb index 39ee5730..bc7537a7 100644 --- a/spec/classes/datadog_agent_reports_spec.rb +++ b/spec/classes/datadog_agent_reports_spec.rb @@ -172,7 +172,7 @@ should contain_file(conf_file)\ .with_owner('puppet')\ .with_group('root')\ - .with_content(/:api_url: api.datadoghq.eu/) + .with_content(/:api_url: https:\/\/api.datadoghq.eu/) end it { should contain_file(conf_file).without_content(/hostname_extraction_regex:/) } end diff --git a/templates/datadog-reports.yaml.erb b/templates/datadog-reports.yaml.erb index dbe74294..4ace36d5 100644 --- a/templates/datadog-reports.yaml.erb +++ b/templates/datadog-reports.yaml.erb @@ -2,7 +2,7 @@ --- :datadog_api_key: '<%= @api_key %>' -:api_url: api.<%= @datadog_site %> +:api_url: https://api.<%= @datadog_site %> <% if @hostname_extraction_regex -%> :hostname_extraction_regex: '<%= @hostname_extraction_regex %>' <% end -%>