phpservermon/puphpet/puppet/modules/mailcatcher/manifests/init.pp

65 lines
1.5 KiB
Puppet

# == Class: mailcatcher
#
# Install and configure Mailcatcher.
# MailCatcher runs a super simple SMTP server which catches any message sent to
# it to display in a web interface.
# http://mailcatcher.me/
#
# === Parameters
#
# Document parameters here.
#
# [*smtp_ip*]
# What IP address the mailcatcher smtp service should listen on.
# The default is 127.0.0.1
#
# [*smtp_port*]
# What TCP Port the mailcatcher smtp service should listen on.
# The default is 1025
#
# [*http_ip*]
# What IP address the mailcatcher web mail client service should listen on.
# The default is 0.0.0.0
#
# [*http_port*]
# What TCP Port the mailcatcher web mail client service should listen on.
# The default is 1080
#
# [*mailcatcher_path*]
# Path to the mailcatcher program.
# The default is '/usr/local/bin'
#
# === Examples
#
# [*default*]
#
# class { mailcatcher: }
#
# [*listen on all ethernet adapters*]
#
# class { mailcatcher:
# smtp_ip => '0.0.0.0'
# }
#
# === Authors
#
# Martin Jackson <contact@uncommonsense-uk.com>
#
# === Copyright
#
# Copyright 2013 Martin Jackson, unless otherwise noted.
#
class mailcatcher (
$smtp_ip = $mailcatcher::params::smtp_ip,
$smtp_port = $mailcatcher::params::smtp_port,
$http_ip = $mailcatcher::params::http_ip,
$http_port = $mailcatcher::params::http_port,
$mailcatcher_path = $mailcatcher::params::mailcatcher_path,
$log_path = $mailcatcher::params::log_path
) inherits mailcatcher::params {
class {'mailcatcher::package': } ->
class {'mailcatcher::config': }
}