Skip to content

Commit 7ceb7b0

Browse files
committed
[dogstatsd] dogstatsd should be on by default.
[travis] ruby 1.9.3 has been EOL'd for a while, adding 2.2.3 and fixing CI. [travis] newer rubies got issues with the puppet (official) gems. [travis] fixing spec tests - default for dogstatsd is yes. [travis] pinpoint rubocop to 0.35.x to address ruby 2.2.3 testing issues. [travis] syck required? [travis] excluding incompatible puppet modules with ruby 2.2.3. [travis] moving changes to its own PR.
1 parent 5823f78 commit 7ceb7b0

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)