diff options
author | elijah <elijah@riseup.net> | 2015-10-14 12:45:09 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2015-10-14 12:45:09 -0700 |
commit | 81763f22e0e5515fa2a3b9c8a65050692bb1cf74 (patch) | |
tree | 42a86bbb40d4a7b8b84c37bae4f0aa3362a3c475 /puppet/modules/clamav/manifests/freshclam.pp | |
parent | 33b9876af4af85504107aae20feb57aaab5a17ad (diff) | |
parent | 43595b105a21aaccb41c4d9199d87b3dc2d48ab5 (diff) |
Merge branch 'develop' of ssh://leap.se/leap_platform into develop
Diffstat (limited to 'puppet/modules/clamav/manifests/freshclam.pp')
-rw-r--r-- | puppet/modules/clamav/manifests/freshclam.pp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/puppet/modules/clamav/manifests/freshclam.pp b/puppet/modules/clamav/manifests/freshclam.pp new file mode 100644 index 00000000..80c822a4 --- /dev/null +++ b/puppet/modules/clamav/manifests/freshclam.pp @@ -0,0 +1,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']; + } + +} |