Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

clamav-milter (2) Versions 0.3.2

Installs/Configures clamav-milter

Policyfile
Berkshelf
Knife
cookbook 'clamav-milter', '= 0.3.2', :supermarket
cookbook 'clamav-milter', '= 0.3.2'
knife supermarket install clamav-milter
knife supermarket download clamav-milter
README
Dependencies
Changelog
Quality 100%

clamav-milter Cookbook

Build Status
Cookbook Version

The cookbook is to install and configure 3 components of Clamav antivirus mail checker - clamav-milter. In order to make it working it install Clamav daemon and Clamav virus database updater as well.

packages

  • clamav - the common part of all Clamav components
  • clamav-daemon - the Clamav daemon package
  • clamav-milter - Milter itself to check passing e-mail

Attributes

The configuration for all 3 components located in 3 hash arrays:

default['clamav']['config']['clamd']
default['clamav']['config']['freshclam']
default['clamav']['config']['clamav-milter']

As members in these hashes any configuration directives are allowed. They will be 1:1 placed in config files.
For instance the example of configuration within the Chef role:

  "override_attributes": {
    "clamav": {
      "config": {
        "clamd": {
          "LogSyslog": "false",
          "LogFile": "/var/log/clamav/clamav.log",
          "LogTime": "true",
          "LogFileUnlock": "false",
          "LogFileMaxSize": "1M"
        },
        "freshclam": {
          "LogSyslog": "false",
          "UpdateLogFile": "/var/log/clamav/freshclam.log",
          "LogTime": "true",
          "LogFileMaxSize": "100M"
        },
        "milter": {
          "OnClean": "Accept",
          "OnInfected": "Reject",
          "OnFail": "Defer",
          "AddHeader": "Replace",
          "LogSyslog": "false",
          "LogVerbose": "false",
          "LogInfected": "Off",
          "LogClean": "Off",
          "LogRotate": "true",
          "LogFile": "/var/log/clamav/clamav-milter.log",
          "LogTime": "true",
          "LogFileUnlock": "false",
          "LogFileMaxSize": "1M"
        }
      }
    }
  }

Default attributes are good enough to start sevices without any configuration.

Usage

clamav-milter::default

Just include clamav-milter in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[clamav-milter]"
  ]
}

Contributing

Any improvements and/or fixes are welcome.

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: Stanislav Voroniy

Copyright 2015, Stanislav Voroniy

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

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

clamav-milter CHANGELOG

0.3.2

  • Stanislav Voroniy - Fix README

0.3.1

  • Stanislav Voroniy - Initial public release of clamav-milter

Foodcritic Metric
            

0.3.2 passed this metric