Skip to content

Commit

Permalink
add in sendmail cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanwb committed Dec 13, 2011
1 parent 9e50273 commit c844618
Show file tree
Hide file tree
Showing 6 changed files with 1,902 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sendmail/README.rdoc
@@ -0,0 +1,8 @@
= DESCRIPTION:

= REQUIREMENTS:

= ATTRIBUTES:

= USAGE:

29 changes: 29 additions & 0 deletions sendmail/metadata.json
@@ -0,0 +1,29 @@
{
"dependencies": {
},
"name": "sendmail",
"maintainer_email": "YOUR_EMAIL",
"attributes": {
},
"license": "All rights reserved",
"suggestions": {
},
"platforms": {
},
"maintainer": "YOUR_COMPANY_NAME",
"long_description": "= DESCRIPTION:\n\n= REQUIREMENTS:\n\n= ATTRIBUTES:\n\n= USAGE:\n\n",
"version": "0.0.1",
"recommendations": {
},
"recipes": {
},
"groupings": {
},
"conflicting": {
},
"replacing": {
},
"description": "Installs/Configures sendmail",
"providing": {
}
}
6 changes: 6 additions & 0 deletions sendmail/metadata.rb
@@ -0,0 +1,6 @@
maintainer "YOUR_COMPANY_NAME"
maintainer_email "YOUR_EMAIL"
license "All rights reserved"
description "Installs/Configures sendmail"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.0.1"
31 changes: 31 additions & 0 deletions sendmail/recipes/default.rb
@@ -0,0 +1,31 @@
#
# Cookbook Name:: sendmail
# Recipe:: default
#
# Copyright 2011, Woof! Inc. Bryan Berry (bryan.berry@gmail.com)
#
# Apache 2.0 license
#


package 'sendmail' do
action :install
end

service 'sendmail' do
action [ :enable,:start ]
end

template "/etc/mail/sendmail.cf" do
source "sendmail.cf.erb"
notifies :restart,"service[sendmail]"
variables({ :relay_host => node['smtp_relay_host'] })
end

template "/etc/mail/relay-domains" do
source "relay-domains"
notifies :restart,"service[sendmail]"
end



1 change: 1 addition & 0 deletions sendmail/templates/default/relay-domains
@@ -0,0 +1 @@
relay localhost

0 comments on commit c844618

Please sign in to comment.