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

wazuh_agent (1) Versions 0.0.9

Installs and onfigures ossec

Policyfile
Berkshelf
Knife
cookbook 'wazuh_agent', '~> 0.0.9', :supermarket
cookbook 'wazuh_agent', '~> 0.0.9'
knife supermarket install wazuh_agent
knife supermarket download wazuh_agent
README
Dependencies
Changelog
Quality 33%

Wazuh Agent cookbook

These cookbooks install and configure a Wazuh Agent on specified nodes.

Agent is automatically registered in the specified address by using 'agent authd' (['ossec']['registration_address'] and connects with the manager address ['ossec']['address']). You can set this attributes by default on attributes folder or specify it in the 'wazuh_agent role'.

Usage

Create a role following the 'wazuh_agent' role structure and specify your desired configuration attributes. Note that address and registration_address are mandatory.

Assign the current role to desired nodes and run chef-client on them.

You can declare desired agent_auth parameters to customize the registration process.

For example:

{
    "name": "wazuh_agent",
    "description": "Wazuh agent",
    "json_class": "Chef::Role",
    "default_attributes": {
    },
    "override_attributes": {
      "ossec": {
        "registration_address": "172.19.0.211",
        "address": "172.19.0.211",
        "agent_auth": {
          "name" : "Agent_01", 
          "set_group" : "group_01",
          "agent_ip_by_manager": "true"
        }
      }
    },
    "chef_type": "role",
    "run_list": [
      "recipe[wazuh_agent::agent]"
    ],
    "env_run_lists": {
    }
}

Will generate: agent_auth -m 172.19.0.211 -p 1515 -A Agent_01 -G group_01 -i

The agent_auth parameters are the following:

-a  : "auto_negotiate"
-A  : "name"
-m  : "host"
-p  : "port"
-c  : "cipher_list"
-D  : "wazuh_directory"
-d  : "debug_mode" : "true"
-g  : "run_as_group"
-G  : "set_group"
-i  : "agent_ip_by_manager" : "true"
-I  : "agent_ip"
-P  : "password"
-v  : "ca"
-x  : "certificate"
-k  : "key"

You can use any of the quoted attributes, as stated in the previous example. Flags options must be set to "true" or "false".

Attributes

The attributes folder contains all the default configuration files in order to generate ossec.conf file.

Check 'ossec.conf' documentation to see all configuration sections.

Recipes

agent.rb

Register agent by using agent authd method. You can declare the desired fields to customize the registration process.

common.rb

It generates the ossec.conf file using Gyoku and restarts the wazuh-agent service

repository.rb

Declares repository of Wazuh and GPG keys based on different installations.

References

Check https://documentation.wazuh.com/3.x/user-manual/agents/index.html for more information about Wazuh-Agent.

Dependent cookbooks

apt >= 0.0.0
chef-sugar >= 0.0.0
poise-python >= 0.0.0
yum >= 0.0.0
hostsfile >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

v0.0.9

Amazon Linux OS included in repository.rb

v0.0.8

Fixed bugs in ossec_to_xml #4 Thanks @smith3v

v0.0.1

  • Initial/current release

Collaborator Number Metric
            

0.0.9 failed this metric

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

Contributing File Metric
            

0.0.9 passed this metric

Foodcritic Metric
            

0.0.9 failed this metric

FC033: Missing template file: wazuh_agent/recipes/agent.rb:100
FC069: Ensure standardized license defined in metadata: wazuh_agent/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.0.9 passed this metric

Testing File Metric
            

0.0.9 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.9 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