Skip to content

Commit 088b061

Browse files
authored
Merge pull request #183 from DataDog/jaime/fixdogstatsd
[puppet] dogstatsd should be on by default.
2 parents 5823f78 + 7ceb7b0 commit 088b061

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

manifests/init.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
# String. Default: empty
105105
# $use_dogstatsd
106106
# Enables the dogstatsd server
107-
# Boolean. Default: false
107+
# Boolean. Default: true
108108
# $dogstatsd_port
109109
# Specifies the port to be used by dogstatsd. Must have use_dogstatsd set
110110
# String. Default: empty
@@ -216,7 +216,7 @@
216216
$pup_port = '',
217217
$pup_interface = '',
218218
$pup_url = '',
219-
$use_dogstatsd = false,
219+
$use_dogstatsd = true,
220220
$dogstatsd_target = '',
221221
$dogstatsd_interval = '',
222222
$dogstatsd_normalize = true,

spec/classes/datadog_agent_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
'content' => /^# bind_host: localhost\n/,
123123
)}
124124
it { should contain_file('/etc/dd-agent/datadog.conf').with(
125-
'content' => /^use_dogstatsd: no\n/,
125+
'content' => /^use_dogstatsd: yes\n/,
126126
)}
127127
it { should contain_file('/etc/dd-agent/datadog.conf').with(
128128
'content' => /^dogstatsd_port: 8125\n/,
@@ -341,10 +341,10 @@
341341
)}
342342
end
343343

344-
context 'with use_dogstatsd set to yes' do
345-
let(:params) {{:use_dogstatsd => true}}
344+
context 'with use_dogstatsd set to no' do
345+
let(:params) {{:use_dogstatsd => false}}
346346
it { should contain_file('/etc/dd-agent/datadog.conf').with(
347-
'content' => /^use_dogstatsd: yes\n/,
347+
'content' => /^use_dogstatsd: no\n/,
348348
)}
349349
end
350350
context 'with dogstatsd_port set to 8126' do

0 commit comments

Comments
 (0)