File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 204204#
205205#
206206class datadog_agent (
207- $dd_url = ' https://app.datadoghq.com ' ,
207+ $dd_url = ' ' ,
208208 $site = $datadog_agent::params::default_site,
209209 $host = ' ' ,
210210 $api_key = ' your_API_key' ,
492492 require => File [' /etc/dd-agent' ],
493493 }
494494
495+ if ($dd_url == ' ' ) {
496+ $_dd_url = ' app.datadoghq.com'
497+ } else {
498+ $_dd_url = $dd_url
499+ }
495500 concat::fragment { 'datadog header' :
496501 target => ' /etc/dd-agent/datadog.conf' ,
497502 content => template (' datadog_agent/datadog_header.conf.erb' ),
Original file line number Diff line number Diff line change 44[Main]
55
66# The host of the Datadog intake server to send agent data to
7- dd_url: <%= @dd_url %>
7+ dd_url: <%= @_dd_url %>
88
99# If you need a proxy to connect to the Internet, provide the settings here
1010<% if @proxy_host.empty? -%>
You can’t perform that action at this time.
0 commit comments