From 00e5e38e9287d71765298e36b7675538197f8aac Mon Sep 17 00:00:00 2001 From: Pythyu Date: Tue, 9 Jul 2024 16:44:00 +0200 Subject: [PATCH] fix(ntp): remove default file if still exist --- manifests/integrations/ntp.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manifests/integrations/ntp.pp b/manifests/integrations/ntp.pp index 14251377..776e3c03 100644 --- a/manifests/integrations/ntp.pp +++ b/manifests/integrations/ntp.pp @@ -61,4 +61,10 @@ require => Package[$datadog_agent::params::package_name], notify => Service[$datadog_agent::params::service_name] } + + # Remove potential remaining default config file + exec { 'remove_default_file': + command => "rm ${$dst}.default", + onlyif => "test -e ${$dst}.default", + } }