Giter VIP home page Giter VIP logo

clamav-chef's Introduction

clamav Cookbook

Cookbook Version Build Status Code Climate Coverage Status

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<VARIES_BY_OS>"

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:

To run the entire suite of tests, simple:

rake

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Add appropriate unit and/or integration tests
  4. Ensure all tests pass (rake)
  5. Commit your changes (git commit -am 'Add some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

License & Authors

Copyright 2012-2014, 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.

clamav-chef's People

Contributors

hartmantis avatar bknowles avatar av1nashs1ngh avatar computerlyrik avatar daxtens avatar mikeputnam avatar stromp avatar

Watchers

Timothy Farrell avatar James Cloos avatar David Ross avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.