Skip to content

Commit

Permalink
[activemq_xml] fix manifest when A6 and purge enabled (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
truthbk authored May 30, 2019
1 parent 1b25440 commit 10d69db
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion manifests/integrations/activemq_xml.pp
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,20 @@

$legacy_dst = "${datadog_agent::conf_dir}/activemq_xml.yaml"
if !$::datadog_agent::agent5_enable {
$dst = "${datadog_agent::conf6_dir}/activemq_xml.d/conf.yaml"
$dst_dir = "${datadog_agent::conf6_dir}/activemq_xml.d"
file { $legacy_dst:
ensure => 'absent'
}

file { $dst_dir:
ensure => directory,
owner => $datadog_agent::params::dd_user,
group => $datadog_agent::params::dd_group,
mode => '0755',
require => Package[$datadog_agent::params::package_name],
notify => Service[$datadog_agent::params::service_name]
}
$dst = "${dst_dir}/conf.yaml"
} else {
$dst = $legacy_dst
}
Expand Down

0 comments on commit 10d69db

Please sign in to comment.