cookbook 'clamav-milter', '~> 0.3.3'
clamav-milter (2) Versions 0.3.3 Follow0
Installs/Configures clamav-milter
cookbook 'clamav-milter', '~> 0.3.3', :supermarket
knife supermarket install clamav-milter
knife supermarket download clamav-milter
clamav-milter Cookbook
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.
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- 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.3
- Stanislav Voroniy - Fix RHEL issues
0.3.2
- Stanislav Voroniy - Fix README
0.3.1
- Stanislav Voroniy - Initial public release of clamav-milter
Collaborator Number Metric
0.3.3 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.3.3 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
0.3.3 failed this metric
FC066: Ensure chef_version is set in metadata: clamav-milter/metadata.rb:1
FC069: Ensure standardized license defined in metadata: clamav-milter/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.3.3 passed this metric
Testing File Metric
0.3.3 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
0.3.3 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 include a tag that matches this cookbook version number
0.3.3 failed this metric
0.3.3 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
0.3.3 failed this metric
FC066: Ensure chef_version is set in metadata: clamav-milter/metadata.rb:1
FC069: Ensure standardized license defined in metadata: clamav-milter/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.3.3 passed this metric
Testing File Metric
0.3.3 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
0.3.3 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 include a tag that matches this cookbook version number
0.3.3 failed this metric
FC069: Ensure standardized license defined in metadata: clamav-milter/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.3.3 passed this metric
Testing File Metric
0.3.3 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
0.3.3 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 include a tag that matches this cookbook version number
0.3.3 failed this metric
0.3.3 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 include a tag that matches this cookbook version number