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

openvas (10) Versions 0.0.53

Installs/Configures openvas

Policyfile
Berkshelf
Knife
cookbook 'openvas', '~> 0.0.53', :supermarket
cookbook 'openvas', '~> 0.0.53'
knife supermarket install openvas
knife supermarket download openvas
README
Dependencies
Quality 17%

Travis-ci status: Build Status

Description

Install and configure OpenVAS ( Open Vulenability Assessment System ); a fork of the Nessus project.

Project homepage can be found here

Requirements

It's recommended to create a role and apply it to your node definition.

Here's an exammple role to enable all things provided by this cookbook.
This is the recommended method. Note: Including recipe openvas::nmap before
openvas::server is required since it's a requirement.
<pre><code>
name "openvas_server"
description "Install & configure an OpenVAS server."
override_attributes "openvas" => { "enable_nvt_updates_from_cron" => "yes",
"gsad_port" => "9392", "enable_greenbone_scan_configs" => "yes",
"nasl_no_signature_check" => "no" }
run_list [
"recipe[openvas::nmap]",
"recipe[openvas::server]"
]
</pre></code>

Here's an example role to install an OpenVAS server.
<pre><code>
name "openvas_scanner"
description "Install/Configure an OpenVAS Server"
override_attributes "openvas_scanner" => { }
run_list [
"recipe[openvas::nmap]",
"recipe[openvas::server]"
]

override_attributes "openvas_scanner" => { }
</pre></code>

Now upload your role like so:
<pre><code>
knife role from file roles/openvas_scanner.json
</pre></code>

Here's an example role to install an OpenVAS Scanner and automatically enable NVT updates.
<pre><code>
name "openvas_scanner"
description "Install/Configure an OpenVAS Server"
override_attributes "openvas" => { "enable_nvt_updates_from_cron" => "yes" }
run_list [
"recipe[openvas::server]",
"recipe[openvas::nmap]"
</pre></code>

Don't forget to apply your role to your node's definition
<pre><code>
{
"normal": {
},
"name": "ovasscanner",
"override": {
},
"prod_web": {
},
"json_class": "Chef::Node",
"automatic": {
},
"run_list": [
"role[openvas_scanner]"
],
"chef_type": "node"
}
</pre></code>

Here's an example role to install only an OpenVAS client.
<pre><code>
name "openvas_client"
description "Install/Configure an OpenVAS client"
run_list "recipe[openvas::client]"
override_attributes "openvas_scanner" => { }
</pre></code>

Now upload your role like so:
<pre><code>
knife role from file roles/openvas_client.rb
</pre></code>

NOTE ABOUT ADMIN/PASSWORD

The default admin user name and password is written
to /etc/openvas/openvas_admin_pass.txt.

Attributes

Set to "yes" to add entry to super user root's CRON tab.
<pre><code>
default['openvas']['enable_nvt_updates_from_cron'] = "yes"
</pre></code>

Collaborator Number Metric
            

0.0.53 failed this metric

Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.0.53 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.0.53 failed this metric

FC047: Attribute assignment does not specify precedence: openvas/recipes/nmap.rb:20
FC047: Attribute assignment does not specify precedence: openvas/recipes/nmap.rb:31
FC064: Ensure issues_url is set in metadata: openvas/metadata.rb:1
FC065: Ensure source_url is set in metadata: openvas/metadata.rb:1
FC066: Ensure chef_version is set in metadata: openvas/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: openvas/metadata.rb:1
FC069: Ensure standardized license defined in metadata: openvas/metadata.rb:1
FC104: Use the :run action in ruby_block instead of :create: openvas/recipes/server.rb:186
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.0.53 passed this metric

Testing File Metric
            

0.0.53 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.0.53 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