Skip to content

Commit

Permalink
Add test for apm footer to not apply template if = empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
rothgar committed Jan 5, 2018
1 parent 4b6bddc commit 97d1303
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 @@ -451,10 +451,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_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 97d1303

Please sign in to comment.