Puppet Class: mailcatcher
- Inherits:
- mailcatcher::params
- Defined in:
- manifests/init.pp
Overview
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. 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.
Todo
-
Only supports debian based distros need support for other distros e.g. redhat, centos, or Amazon.
56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'manifests/init.pp', line 56
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
) inherits mailcatcher::params {
class {'mailcatcher::package': } ->
class {'mailcatcher::config': } ->
class {'mailcatcher::service': }
}
|