On Sat, Oct 12, 2013 at 09:22:13AM -0400, Nick Davis wrote:
> Ooops, enable should be "True" on freshclam service.
To make it work I splitted pkg.installed to separate lines:
clamav-daemon:
pkg:
- installed
service:
- running
- enable: True
- require:
- pkg: clamav-daemon
clamav-freshclam:
pkg:
- installed
service:
- running
- enable: True
- require:
- pkg: clamav-daemon
- pkg: clamav-freshclam
Still, no success. It looks like clamav-daemon won't run without antivirus database:
apt-get install clamav-freshclam clamav-daemon && /etc/init.d/clamav-freshclam start && /etc/init.d/clamav-daemon start
* Clamav signatures not found in /var/lib/clamav
* Please retrieve them using freshclam
* Then run '/etc/init.d/clamav-daemon start'
This was not shown in the minion log and no error was reported. I solved it with the following workaround:
clamav-freshclam:
pkg:
- installed
service:
- running
- enable: True
freshclam:
cmd.wait:
- watch:
- pkg: clamav-freshclam
clamav-daemon:
pkg:
- installed
service:
- running
- require:
- cmd: freshclam