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

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

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

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

}