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

ssmtp (8) Versions 0.3.1

Installs/Configures ssmtp

Policyfile
Berkshelf
Knife
cookbook 'ssmtp', '= 0.3.1', :supermarket
cookbook 'ssmtp', '= 0.3.1'
knife supermarket install ssmtp
knife supermarket download ssmtp
README
Dependencies
Quality -%

ssmtp-cookbook

Synopsis

This is a Chef cookbook for deploying ssmtp. So far it is tested on Debian (6+) only.

Requirements

Miscellaneous

Chef dependencies

  • No dependencies yet

Usage

Adding the cookbook

Add it to your Librarian-chef Cheffile:

cookbook 'ssmtp',
  :git => 'https://github.com/svanzoest/ssmtp-cookbook.git'

Or clone the cookbook into your local chef repository:

git clone https://github.com/svanzoest/ssmtp-cookbook.git

Configuration

The cookbook provides a couple attributes that help you to configure ssmtp via a role's default_attributes.

Here's an example role:

name 'mail_server'
description "Installs mail related applications."
# List of recipes and roles to apply. Requires Chef 0.8, earlier versions use 'recipes()'.
run_list(
  'recipe[ssmtp]'
)
# Attributes applied if the node doesn't have it set already.
default_attributes(
  'ssmtp' => {
    'root' => 'user@example.com',
    'rewrite_domain' => 'example.com',
    'mailhub_name' => 'smtp.example.com'
  }
)
# Attributes applied no matter what the node has set already.
#override_attributes(
#)

For a full list of attributes please consult ./attributes/default.rb.

Authentication

The cookbook provides an attribute called credential_method which defines whether authentication credentials are provided in a crypted data bag or via plain text. It defaults to the more secure crypto data bag method.

Available options are:

  • data_bag
  • plain
Creating the data bag
|ruby-1.9.3-p194@hosted-chef| nb-madolphs in ~/Development/Personal/Repositories/hosted-chef
± |master ✓| → knife data bag create --secret-file .chef/encrypted_data_bag_secret mail ssmtp
Created data_bag[mail]
Created data_bag_item[ssmtp]        

|ruby-1.9.3-p194@hosted-chef| nb-madolphs in ~/Development/Personal/Repositories/hosted-chef
± |master ✓| → mkdir -p data_bags/mail

|ruby-1.9.3-p194@hosted-chef| nb-madolphs in ~/Development/Personal/Repositories/hosted-chef
± |master ✓| → knife data bag show mail ssmtp -F json > data_bags/mail/ssmtp.json
Viewing the data bag
± |master ✗| → knife data bag show --secret-file .chef/encrypted_data_bag_secret mail ssmtp
id:        ssmtp
password:  foobar
username:  user@example.com

± |master ✗| → knife data bag show --secret-file .chef/encrypted_data_bag_secret -F json mail ssmtp
{
  "username": "user@example.com",
  "id": "ssmtp",
  "password": "foobar"
}

Development

  • Source hosted at GitHub
  • Report issues/Questions/Feature requests on GitHub as well

Pull requests are very welcome! Make sure your patches are well tested.

License

Copyright © 2009-2013, Sander van Zoest

Copyright © 2012, Mike Adolphs

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

limitations under the License.

Dependent cookbooks

yum >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found