Skip to content

Commit

Permalink
Merge pull request DataDog#381 from rothgar/apm_footer_test
Browse files Browse the repository at this point in the history
Add test for apm footer to not apply template if = empty string
  • Loading branch information
truthbk authored Feb 5, 2018
2 parents 6fb680d + c6bb17a commit 9b75456
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,12 @@
$apm_footer_order = '06'
}

concat::fragment{ 'datadog apm footer':
target => '/etc/dd-agent/datadog.conf',
content => template('datadog_agent/datadog_apm_footer.conf.erb'),
order => $apm_footer_order,
if ($apm_enabled == true) and ($apm_env != '') {
concat::fragment{ 'datadog apm footer':
target => '/etc/dd-agent/datadog.conf',
content => template('datadog_agent/datadog_apm_footer.conf.erb'),
order => $apm_footer_order,
}
}
} else {

Expand Down

0 comments on commit 9b75456

Please sign in to comment.