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

opsmatic (3) Versions 0.1.21

Installs/Configures Opsmatic services and integrations

Policyfile
Berkshelf
Knife
cookbook 'opsmatic', '= 0.1.21', :supermarket
cookbook 'opsmatic', '= 0.1.21'
knife supermarket install opsmatic
knife supermarket download opsmatic
README
Dependencies
Changelog
Quality 100%

Build Status

opsmatic Cookbook

This cookbook contains various recipes to help you with integrating your infrastructure with Opsmatic. The recipes
contained in this cookbook are as follows:

opsmatic::handler

This recipe configures a report and exception handler that sends detail on successful and failed runs to Opsmatic

opsmatic::agent

This recipe configures the opsmatic collection agent

opsmatic::file-integrity-monitoring

This recipe configures file monitoring for the agent

Requirements

opsmatic::handler

The Opsmatic report handler depends on the chef_handler cookbook

Attributes

  • node[:opsmatic][:integration_token] - You must configure this attribute with your integration token. You can find your integration token on the Integrations page in your Opsmatic account.

opsmatic::handler

  • node[:opsmatic][:ssl_peer_verify] - Enables/Disable OpenSSL peer verification. Defaults to false (no peer verificaiton) until we can work out a consistent and reliable way to make this work for everyone.
  • node[:opsmatic][:handler_version] - Version of the chef-handler-opsmatic rubygem to use. We suggest you set this attribute somewhere globally in your environment, we'll notify you when upgrades are available and you can bump the version number.

opsmatic::agent

  • node[:opsmatic][:agent_action] - determines whether chef should attept to upgrade the agent on every subsequent run
  • node[:opsmatic][:handler_version] - pins the agent to a specific version. Default behavior is to install the latest available version the first time around and stay put after that.
  • node[:opsmatic][:host_alias] - specifies the host's alias in /etc/opsmatic-agent.conf
  • node[:opsmatic][:groups] - specifies the group that a host belongs to in /etc/opsmatic-agent.conf

More information regarding the latter two attributes can be located here

opsmatic::file-integrity-monitoring

  • node[:opsmatic][:file-monitor-list] - takes an array of strings that contain file paths for file integrity monitoring: "file-monitor-list": ['/etc/nginx/nginx.conf','/etc/ssh/sshd_config','/etc/rsyslog.conf','/etc/hosts','/etc/passwd']

Usage

opsmatic::handler && opsmatic::agent

To wire the handler into your infrastructure, add the opsmatic::handler recipe as the first item in the run list
of your node or role (You will need to use the agent as well).

    {
        "name": "my_node",
        "run_list": [
           "recipe[opsmatic::handler]",
           "recipe[opsmatic::agent]"
        ]
    }

The attributes will look something like this:

    "attributes": {
        "opsmatic": {
            "integration_token": "YOUR-INTEGRATION-TOKEN",
            "file-monitor-list": ["/etc/nginx/nginx.conf","/etc/ssh/sshd_config","/etc/rsyslog.conf","/etc/hosts","/etc/passwd"],
            "host_alias": "chefcookbookhostname",
            "groups": ["groupone", "anothergroup", "yetanothergroup"]
        }
    }

To install just the agent remove the opsmatic::handler recipe.

Contributing

  1. Fork it ( https://github.com/opsmatic/opsmatic-cookbook/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Dependent cookbooks

chef_handler >= 0.0.0
apt >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Changelog

0.1.0 / 2014-06-05

  • initial release

0.1.1 / 2014-06-06

  • allow enable/disable of SSL peer verification via attribute

Foodcritic Metric
            

0.1.21 passed this metric