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

The samhain cookbook has been deprecated

Author provided reason for deprecation:

The samhain cookbook has been deprecated and is no longer being maintained by its authors. Use of the samhain cookbook is no longer recommended.

RSS

samhain (8) Versions 0.5.1

Installs/configures Samhain

Policyfile
Berkshelf
Knife
cookbook 'samhain', '= 0.5.1', :supermarket
cookbook 'samhain', '= 0.5.1'
knife supermarket install samhain
knife supermarket download samhain
README
Dependencies
Changelog
Quality 50%

Samhain Cookbook

Cookbook Version
Build Status
Code Climate
Coverage Status

Installs and configures Samhain for host integrity monitoring.

Requirements

This cookbook currently supports Ubuntu only and is actively tested against
15.04, 14.04, and 12.04 while also attempting to maintain (untested)
compatibility with 10.04. The hope is to support other platforms as well in
the future.

Assorted older Chef and Ruby conventions are intentionally used to (for now)
maintain compatibility with Chef 11.

Usage

Include samhain in your node's run_list:

{
  "run_list": [
    "recipe[samhain::default]"
  ]
}

Recipes

default

Do a simple, attribute-based install of Samhain.

Attributes

default

The attributes in attributes/default.rb are for the basic configuration of
Samhain. They write to a file at /etc/samhain/samhainrc The config is written
at run time and can be extended from any book by adding attributes. Since the
samhainrc is not a perfect hash, the syntax for adding attributes is a bit
different.

To overwrite regular attributes:

    ['samhain']['config']['Misc']['bacon'] = 'Applewood Smoked'

To add files or directories for monitoring:

    ['samhain']['config']['LogFiles']['file']['path/to/my/file'] = true

Usage

The intent of the attributes file is to allow
service owners to add files to the Samhain watchlist.
For more information on Samhain, see their docs at
Samhain Labs

Resources

samhain

A parent resource for the Samhain components.

Syntax:

samhain 'default' do
    config { 'Attributes' => { 'file' => { '/etc/mtab' => true } } }
    source 'http://example.com/samhain.package'
    action :create
end

Actions:

Action Description
:create Install, configure, and enaile+start Samhain
:remove Stop+disable and remove Samhain

Attributes:

Attribute Default Description
config nil A Samhain configuration hash
source nil An optional custom package PATH/URL
action :create Action(s) to perform

samhain_app

A resource for installation and removal of the Samhain app package.

Syntax:

samhain_app 'default' do
    source 'http://example.com/samhain.package'
    action :install
end

Actions:

Action Description
:install Install the Samhain package
:remove Uninstall the Samhain package

Attributes:

Attribute Default Description
source nil An optional custom package PATH/URL
action :install Action(s) to perform

samhain_config

A resource for generating Samhain configurations.

Syntax:

samhain_config 'default' do
    config { 'Attributes' => { 'file' => { '/etc/mtab' => true } } }
    action :create
end

Actions:

Action Description
:create Write out the samhainrc config file
:remove Delete the samhainrc config file

Attributes:

Attribute Default Description
config nil A Samhain configuration hash
action :create Action(s) to perform

samhain_service

A resource for the Samhain service.

Syntax:

samhain_service 'default' do
    action [:create, :enable, :start]
end

Actions:

Action Description
:create Ensure the service is defined
:remove Delete the service definition
:enable Enable the service
:disable Disable the service
:start Start the service
:stop Stop the service
:restart Restart the service

Attributes:

Attribute Default Description
action [:create, :enable, :start] Action(s) to perform

Providers

Chef::Provider::Samhain

Platform-agnostic provider that wraps each of the Samhain component resources.

Chef::Provider::SamhainApp

The parent for all platform-specific Samhain app package providers.

Chef::Provider::SamhainApp::Ubuntu

An implementation of the samhain_app provider for Ubuntu.

Chef::Provider::SamhainService

Platform-agnostic provider for managing the Samhain service.

Chef::Provider::SamhainServce::Ubuntu::Trusty

Specialized provider to patch the malfunctioning init script that ships with
Samhain for Ubuntu 14.04.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Add tests for the new feature; ensure they pass (rake)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request

License & Authors

Copyright 2015-2016, Socrata, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and

Dependent cookbooks

apt >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Samhain Cookbook CHANGELOG

v0.5.1 (2016-01-11)

  • Catch and clean up cases of duplicate trusted users

v0.5.0 (2016-01-09)

  • Get rid of errors about access to /var/log by granting trusted status to any user with group-write access

v0.4.0 (2015-12-30)

  • Add support for legacy versions of Ubuntu (with testing done against 12.04)

v0.3.0 (2015-12-21)

  • Convert everything to HWRPs

v0.2.0 (2015-12-15)

  • Fix failures in service restarts and reloads in Ubuntu 14.04 by modifying the bug-impacted init script

v0.1.0 (2015-12-04)

  • Initial release

v0.0.1 (2015-11-13)

  • Development started

Collaborator Number Metric
            

0.5.1 failed this metric

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

Contributing File Metric
            

0.5.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
            

0.5.1 passed this metric

No Binaries Metric
            

0.5.1 passed this metric

Testing File Metric
            

0.5.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
            

0.5.1 passed this metric