Forge Home

clamav

clamav management

46,513 downloads

8,580 latest version

3.9 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.1.0 (latest)
  • 0.0.2
  • 0.0.1
released Dec 8th 2015

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'arusso-clamav', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add arusso-clamav
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install arusso-clamav --version 0.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

arusso/clamav — version 0.1.0 Dec 8th 2015

ClamAV Puppet Module

This module provides mechanisms to manage clamav, allowing for the creation of scheduled scans via the clamav::scan define as well as running the clamd daemon using the clamav::clamd class.

Examples

Setup a clamav scan that scans everything except the /sys and /dev, and does not run on a schedule.

 clamav::scan { 'all-but-sys-and-dev':
   exclude_dir => ['(?i)/^\/(sys|dev)/'],
   scan        => ['/'],
   enable      => false,
 }

Add signature and file whitelist entries in /var/lib/clamav/local.ign2, /var/lib/clamav/local.sfp, and /var/lib/clamav/local.fp:

class { 'clamav':
  whitelist_sig => [
    'ClamAV-Test-Signature',
    'Eicar-Test-Signature:bc356bae4c42f19a3de16e333ba3569c',
  ],
  whitelist_sha => [
    'da39a3ee5e6b4b0d3255bfef95601890afd80709',
    'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
  ],
  whitelist_md5 => [ 'd41d8cd98f00b204e9800998ecf8427e' ]
}

Enable clamd:

include clamav::clamd

Enable clamd and setup on-access scanning

class { 'clamav::clamd':
  scan_on_access          => 'yes',
  on_access_max_file_size => '15M',
  on_access_exclude_path  => [ '/srv/noscan' ],
  on_access_include_path  => [ '/srv' ],
}

License

See LICENSE file

Copyright

Copyright © 2015 The Regents of the University of California

Contact

Aaron Russo arusso@berkeley.edu

Support

Please log tickets and issues at the Projects site