cookbook 'Lynis', '~> 1.0.1'
Lynis (4) Versions 1.0.1 Follow2
Installs/Configures Lynis
cookbook 'Lynis', '~> 1.0.1', :supermarket
knife supermarket install Lynis
knife supermarket download Lynis
Lynis Cookbook
This cookbook installs Lynis and can also execute the security audit report if instructed.
What is Lynis?
Lynis is a software component to audit Unix based systems. Lynis Enterprise uses Lynis to gather data from machines. Additionally it has an administration interface, reporting, implementation plans, hardening guidance and more. For more details, refer to - https://cisofy.com/lynis-enterprise/
Requirements
Depends on cookbooks
* apt
* apt-transport-https
Platforms
- Tested on ubuntu-16.04 only
Chef
- Chef 12.0 or later
Attributes
None
Usage
Lynis::default
This would install lynis and execute the audit report
e.g.
Just include Lynis
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[Lynis]" ] }
Lynis::install
This would install lynis only
e.g.
Just include Lynis::install
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[Lynis::install]" ] }
Lynis::audit
This would execute the security audit report. It would also check if the lynis package is installed. The report is generated by default under /var/log/. The 2 report files are -
* lynis.log
* lynis-report.dat
e.g.
Just include Lynis::audit
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[Lynis::audit]" ] }
Contributing
- Create a branch of the repository on Bitbucket
- 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 Bitbucket
License and Authors
Authors: Mrinal Mukherjee
Dependent cookbooks
apt ~> 4.0.2 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Lynis CHANGELOG
This file is used to list changes made in each version of the Lynis cookbook.
0.1.0
- [Mrinal Mukherjee] - Initial release of Lynis
0.2.0
- [Mrinal Mukherjee] - Updated the licence to GPL since Lynis is released as GPL
1.0.0
- [Mrinal Mukherjee] - Refactored the code base and tests. Updated the licence
1.0.1
- [Mrinal Mukherjee] - Replaced bitbucket with github, updated changelog. Rubocop fixes. Bumped up the version
Collaborator Number Metric
1.0.1 passed this metric
Contributing File Metric
1.0.1 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.0.1 failed this metric
FC064: Ensure issues_url is set in metadata: Lynis/metadata.rb:1
FC065: Ensure source_url is set in metadata: Lynis/metadata.rb:1
FC066: Ensure chef_version is set in metadata: Lynis/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: Lynis/metadata.rb:1
FC069: Ensure standardized license defined in metadata: Lynis/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.1 passed this metric
Testing File Metric
1.0.1 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.0.1 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
1.0.1 passed this metric
1.0.1 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.0.1 failed this metric
FC064: Ensure issues_url is set in metadata: Lynis/metadata.rb:1
FC065: Ensure source_url is set in metadata: Lynis/metadata.rb:1
FC066: Ensure chef_version is set in metadata: Lynis/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: Lynis/metadata.rb:1
FC069: Ensure standardized license defined in metadata: Lynis/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.1 passed this metric
Testing File Metric
1.0.1 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.0.1 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
1.0.1 failed this metric
FC065: Ensure source_url is set in metadata: Lynis/metadata.rb:1
FC066: Ensure chef_version is set in metadata: Lynis/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: Lynis/metadata.rb:1
FC069: Ensure standardized license defined in metadata: Lynis/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.0.1 passed this metric
Testing File Metric
1.0.1 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.0.1 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
1.0.1 failed this metric
1.0.1 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