Skip to content

Commit

Permalink
Notify the filebeat::service class when packages are updated
Browse files Browse the repository at this point in the history
Fixes #56
  • Loading branch information
pcfens committed Nov 17, 2016
1 parent 35f38a9 commit e25c6b3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@

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': }
Class['filebeat::repo'] -> Class['filebeat::install::linux']
}
}
'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: {
Expand Down

0 comments on commit e25c6b3

Please sign in to comment.