diff --git a/attributes/default.rb b/attributes/default.rb index d7b08a15..38d6a9a4 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -78,6 +78,9 @@ # See: https://github.com/DataDog/dd-agent/wiki/Network-Traffic-and-Proxy-Configuration default['datadog']['non_local_traffic'] = false +# The loopback address the Forwarder and Dogstatsd will bind. +default['datadog']['bind_host'] = 'localhost' + # How often you want the agent to collect data, in seconds. Any value between # 15 and 60 is a reasonable interval. default['datadog']['check_freq'] = 15 diff --git a/templates/default/datadog.conf.erb b/templates/default/datadog.conf.erb index 21f2c090..2fd76b7c 100644 --- a/templates/default/datadog.conf.erb +++ b/templates/default/datadog.conf.erb @@ -8,6 +8,7 @@ check_freq: <%= node['datadog']['check_freq'] %> hostname: <%= node['datadog']['hostname'] %> use_mount: <%= node['datadog']['use_mount'] ? "yes" : "no" %> listen_port: <%= node['datadog']['agent_port'] %> +bind_host: <%= node['datadog']['bind_host'] %> <% if node['datadog']['autorestart'] -%> autorestart: <%= node['datadog']['autorestart'] %> <% end -%>