From e25c6b3fe061f952d6265352e4045708cb914e89 Mon Sep 17 00:00:00 2001
From: Phil Fenstermacher <pcfens@wm.edu>
Date: Thu, 17 Nov 2016 10:24:58 -0500
Subject: [PATCH] Notify the filebeat::service class when packages are updated

Fixes #56
---
 manifests/install.pp | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/manifests/install.pp b/manifests/install.pp
index e79b137..1071de5 100644
--- a/manifests/install.pp
+++ b/manifests/install.pp
@@ -3,7 +3,9 @@
 
   case $::kernel {
     'Linux':   {
-      class{ 'filebeat::install::linux': }
+      class{ 'filebeat::install::linux':
+        notify => Class['filebeat::service'],
+      }
       Anchor['filebeat::install::begin'] -> Class['filebeat::install::linux'] -> Anchor['filebeat::install::end']
       if $::filebeat::manage_repo {
         class { 'filebeat::repo': }
@@ -11,7 +13,9 @@
       }
     }
     'Windows': {
-      class{'filebeat::install::windows':}
+      class{'filebeat::install::windows':
+        notify => Class['filebeat::service'],
+      }
       Anchor['filebeat::install::begin'] -> Class['filebeat::install::windows'] -> Anchor['filebeat::install::end']
     }
     default:   {