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_manager (1) Versions 0.0.9

Installs and onfigures ossec

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

Wazuh Manager cookbook

This cookbook installs and configure Wazuh Manager and API on specified nodes.

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.

Installation

Create a role, wazuh_manager. Add attributes per above as needed to customize the installation.

  {
    "name": "wazuh_manager",
    "description": "Wazuh Manager host",
    "json_class": "Chef::Role",
    "default_attributes": {

    },
    "override_attributes": {

    },
    "chef_type": "role",
    "run_list": [
      "recipe[wazuh::manager]"
    ],
    "env_run_lists": {

    }
  }

If you want to build a Wazuh cluster, you need to create two roles, one role for the Master and another one for Client:

Note: This Chef cookbook only brings compatibility with CentOS 7, we are working on add more distributions soon.

  {
    "name": "wazuh_manager_master",
    "description": "Wazuh Manager master node",
    "json_class": "Chef::Role",
    "default_attributes": {

    },
    "override_attributes": {
      "ossec": {
        "cluster_disabled": "no",
        "conf": {
          "server": {
            "cluster": {
              "node_name": "node01",
              "node_type": "master",
              "disabled": "no",
              "nodes": {
                "node": ["172.16.10.10", "172.16.10.11"]
              "key": "596f6b328c8ca831a03f7c7ca8203e8b"
            }
          }
        }
    },
    "chef_type": "role",
    "run_list": [
      "recipe[wazuh::manager]"
    ],
    "env_run_lists": {

    }
  }
  {
    "name": "wazuh_manager_client",
    "description": "Wazuh Manager client node",
    "json_class": "Chef::Role",
    "default_attributes": {

    },
    "override_attributes": {
      "ossec": {
        "cluster_disabled": "no",
        "conf": {
          "server": {
            "cluster": {
              "node_name": "node02",
              "node_type": "client",
              "disabled": "no",
              "nodes": {
                "node": ["172.16.10.10", "172.16.10.11"]
              "key": "596f6b328c8ca831a03f7c7ca8203e8b"
            }
          }
        }
    },
    "chef_type": "role",
    "run_list": [
      "recipe[wazuh::manager]"
    ],
    "env_run_lists": {

    }
  }

Check cluster documentation for more details: https://documentation.wazuh.com/current/user-manual/manager/wazuh-cluster.html

Recipes

manager.rb

Installs the wazuh-manager and required dependencies. Also creates the local_rules.xml and local_decoder.xml files.

common.rb

Generates the ossec.conf file using Gyoku.

repository.rb

Declares wazuh repository and gpg key urls.

wazuh_api.rb

Installs Node.js and Wazuh API. Important: You can add your credentials by setting the attributes:

  • ['api']['user'] = "foo"
  • ['api']['passcode'] = "bar"
  • ['api']['password_plaintext'] = "yes"

If password_plaintext is set to "no" the password won't be hashed.

References

Check https://documentation.wazuh.com/current/user-manual/manager/index.html for more information about Wazuh Manager.

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_manager/recipes/manager.rb:62
FC069: Ensure standardized license defined in metadata: wazuh_manager/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