diff --git a/manifests/init.pp b/manifests/init.pp index 1c772f36..cc19a215 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -451,7 +451,7 @@ $apm_footer_order = '06' } - if $apm_env != '' { + 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'),