From d75dedb4c8ae13bfbfc96678ffda911c9cb66cb1 Mon Sep 17 00:00:00 2001 From: Frederico Marques Date: Fri, 6 Nov 2015 16:39:39 +0000 Subject: [PATCH] Refresh service after package change (upgrade or downgrade) This is to address issue reported at https://github.com/elastic/puppet-logstash/issues/215. We now refresh logstash service everytime there is a package change. This is particulary useful when upgrading. --- manifests/package/install.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/package/install.pp b/manifests/package/install.pp index 26faa880..80ee9f3c 100644 --- a/manifests/package/install.pp +++ b/manifests/package/install.pp @@ -153,7 +153,8 @@ package { $name: ensure => $package_ensure, source => $pkg_source, - provider => $pkg_provider + provider => $pkg_provider, + notify => Class['logstash::service'] } } else {