cookbook 'clamav', '~> 1.3.0'
clamav (8) Versions 1.3.0 Follow16
Installs/configures ClamAV
cookbook 'clamav', '~> 1.3.0', :supermarket
knife supermarket install clamav
knife supermarket download clamav
clamav Cookbook
A cookbook for installing and configuring ClamAV. Components to be installed/enabled
are accessible as attributes.
Requirements
- A RHEL/CentOS/Scientific, Debian/Ubuntu, or compatible OS
Attributes
Pretty much everything offered as options for ClamAV is configurable. Some
attributes that one might commonly want to override:
default["clamav"]["clamd"]["enabled"] = false
default["clamav"]["freshclam"]["enabled"] = false
Whether or not the ClamAV daemons should be running
default["clamav"]["version"] = "0.97.6"
The version of the ClamAV packages to install
default["clamav"]["dev_package"] = false
Whether to install the appropriate ClamAV development package
default["clamav"]["clamd"]["log_file"] = "/var/log/clamav/clamd.log"
default["clamav"]["clamd"]["logrotate_frequency"] = "daily"
default["clamav"]["clamd"]["logrotate_rotations"] = 7
default["clamav"]["clamd"]["log_file_unlock"] = "no"
default["clamav"]["clamd"]["log_file_max_size"] = "1M"
default["clamav"]["clamd"]["log_time"] = "no"
default["clamav"]["clamd"]["log_clean"] = "no"
default["clamav"]["clamd"]["log_syslog"] = "no"
default["clamav"]["clamd"]["log_facility"] = nil
default["clamav"]["clamd"]["log_verbose"] = "no"
default["clamav"]["freshclam"]["update_log_file"] = "/var/log/clamav/freshclam.log"
default["clamav"]["freshclam"]["logrotate_frequency"] = "daily"
default["clamav"]["freshclam"]["logrotate_rotations"] = 7
default["clamav"]["freshclam"]["log_file_max_size"] = "1M"
default["clamav"]["freshclam"]["log_time"] = "no"
default["clamav"]["freshclam"]["log_verbose"] = "no"
default["clamav"]["freshclam"]["log_syslog"] = "no"
default["clamav"]["freshclam"]["log_facility"] = nil
Log file/syslog facility logging options
default['clamav']['scan']['script']['enable'] = false
default['clamav']['scan']['minimal']['enable'] = false
default['clamav']['scan']['full']['enable'] = false
Optionally enable a daily minimum virus scan and/or a weekly virus scan of the
full filesystem.
ClamAV has many other options. See the attribute files and ClamAV
documentation for details.
Usage
Nothing special. Override the default attributes as you see fit and go to town!
Development
Feel free to fork this project and submit any changes via pull request.
Testing
This cookbook implements several suites of syntax, style, unit, integration and
acceptance tests, utilizing a number of tools:
- Vagrant and VirtualBox for creating virtual environments
- Berkshelf for retrieving cookbook dependencies
- Rubocop for Ruby lint tests
- FoodCritic for Chef lint tests
- ChefSpec for the cookbook unit tests
- Serverspec for post-converge integration tests
- Cucumber for high-level acceptance tests
- Test Kitchen to tie all the tests together
To run the entire suite of tests, simple:
rake
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Add appropriate unit and/or integration tests
- Ensure all tests pass (
rake
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License & Authors
- Author: Jonathan Hartman j@p4nt5.com
Copyright 2012-2016, Jonathan Hartman
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Dependent cookbooks
logrotate ~> 1.0 |
yum ~> 3.0 |
yum-epel ~> 0.2 |
apt ~> 2.1 |
cron ~> 1.2 |
Contingent cookbooks
ClamAV Cookbook CHANGELOG
v1.3.0 (2016-02-05)
- Remove the additional Ubuntu repo; it was shut down 2016/01/30
- Run Freshclam any time the virus DB does not exist
- Add an attribute that can be overridden to skip the initial Freshclam run
v1.2.0 (2015-05-07)
- Add support for RHEL7
- Add an attribute to control disabling/enabling of the Freshclam cron job RHEL installs and disables by default
v1.1.0 (2015-01-27)
- In Amazon, use their packages instead of EPEL's
- Remove deprecated
ClamukoScanOnAccess
option
v1.0.2 (2014-02-21)
- Remove .DS_Store file accidentally uploaded to community site
v1.0.0 (2014-01-31)
- Update to the latest supporting Gems
- Update everything to Rubocop's style guidelines
- Implement ChefSpec v3 unit tests
- Implement full suite of Test Kitchen integration and acceptance tests
- Add support for simple and full scheduled filesystem scans
v0.4.1 (2013-12-13)
- Bump dependency cookbook versions
v0.4.0 (2013-03-29)
- Default package versions to nil for now to make life easier
- Loosen the cookbook dependencies a little
v0.2.0 (2013-01-16)
- Initial release
Collaborator Number Metric
1.3.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.3.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.3.0 passed this metric
No Binaries Metric
1.3.0 passed this metric
Testing File Metric
1.3.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.3.0 passed this metric
1.3.0 failed this metric
1.3.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.3.0 passed this metric
No Binaries Metric
1.3.0 passed this metric
Testing File Metric
1.3.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.3.0 passed this metric
1.3.0 passed this metric
1.3.0 passed this metric
Testing File Metric
1.3.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.3.0 passed this metric
1.3.0 failed this metric
1.3.0 passed this metric