summaryrefslogtreecommitdiff
path: root/puppet/modules/clamav/manifests/freshclam.pp
blob: 80c822a45df9772e33c73b8db2fb0f6c4002101a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class clamav::freshclam {

  package { 'clamav-freshclam': ensure => installed }

  service {
    'freshclam':
      ensure     => running,
      enable     => true,
      name       => clamav-freshclam,
      pattern    => '/usr/bin/freshclam',
      hasrestart => true,
      require    => Package['clamav-freshclam'];
  }

  file_line {
    'freshclam_notify':
      path    => '/etc/clamav/freshclam.conf',
      line    => 'NotifyClamd /etc/clamav/clamd.conf',
      require => Package['clamav-freshclam'],
      notify  => Service['freshclam'];
  }

}