Skip to content

Commit 9347fb5

Browse files
committed
[docker_daemon] agent6 goes back to docker.yaml for config
1 parent 03cf2c7 commit 9347fb5

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

manifests/integrations/docker_daemon.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535

3636
if $::datadog_agent::agent6_enable {
37-
$legacy_conf = "${datadog_agent::conf6_dir}/docker.yaml"
37+
$legacy_conf = "${datadog_agent::conf6_dir}/docker_daemon.yaml"
3838
} else {
3939
$legacy_conf = "${datadog_agent::conf_dir}/docker.yaml"
4040
}
@@ -44,7 +44,7 @@
4444
}
4545

4646
if $::datadog_agent::agent6_enable {
47-
$dst = "${datadog_agent::conf6_dir}/docker_daemon.yaml"
47+
$dst = "${datadog_agent::conf6_dir}/docker.yaml"
4848
} else {
4949
$dst = "${datadog_agent::conf_dir}/docker_daemon.yaml"
5050
}

spec/classes/datadog_agent_integrations_docker_daemon_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
let(:dd_group) { 'root' }
1818
let(:dd_package) { 'datadog-agent' }
1919
let(:dd_service) { 'datadog-agent' }
20-
let(:conf_file) { "#{conf_dir}/docker_daemon.yaml" }
20+
if !enabled
21+
let(:conf_file) { "#{conf_dir}/docker_daemon.yaml" }
22+
else
23+
let(:conf_file) { "#{conf_dir}/docker.yaml" }
24+
end
2125

2226
it { should compile.with_all_deps }
2327
it { should contain_file(conf_file).with(

0 commit comments

Comments
 (0)