Version information
This version is compatible with:
- Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >= 4.7.0 < 7.0.0
- , ,
Start using this module
Add this module to your Puppetfile:
mod 'attachmentgenie-mailhog', '4.0.0'
Learn more about managing modules with a PuppetfileDocumentation
attachmentgenie-mailhog
Table of Contents
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with mailhog
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Module Description
MailHog is an email testing tool for developers:
- Configure your application to use MailHog for SMTP delivery
- View messages in the web UI, or retrieve them with the JSON API
Setup
What mailhog affects
- Configuration files and directories (created and written to)
- Package/service/configuration files for Mailhog
- Listened-to ports
Usage
All options and configuration can be done through interacting with the parameters on the main mailhog class. These are now documented via Puppet Strings
You can view example usage in REFERENCE.
Reference
See REFERENCE.
Limitations
This module currently only exposes a subset of all configuration options.
Development
Running tests
This project contains tests for both rspec-puppet and litmus to verify functionality. For detailed information on using these tools, please see their respective documentation.
Testing quickstart:
pdk bundle install
pdk bundle exec rake 'litmus:provision_list[puppet6]'
pdk bundle exec rake 'litmus:install_agent[puppet6]'
pdk bundle exec rake litmus:install_module
pdk bundle exec rake litmus:acceptance:parallel
pdk bundle exec rake litmus:tear_down
Reference
Table of Contents
Classes
Public Classes
mailhog
: Class to install and configure mailhog. Use this module to install and configure mailhog.
Private Classes
mailhog::config
: Class to configure mailhog.mailhog::install
: Class to install mailhog.mailhog::service
: Class to manage the mailhog service.
Classes
mailhog
Class to install and configure mailhog.
Use this module to install and configure mailhog.
Examples
Declaring the class
class { '::mailhog':
install_method => 'archive',
archive_source => 'https://github.com/mailhog/MailHog/releases/download/v1.0.1/MailHog_linux_amd64',
}
Parameters
The following parameters are available in the mailhog
class.
config
Data type: String[1]
Mailhog config.
config_file
Data type: Stdlib::Absolutepath
Mailhog config file.
install_dir
Data type: Stdlib::Absolutepath
Location of mailhog binary release.
install_method
Data type: Enum['package','archive']
How to install mailhog.
manage_service
Data type: Boolean
Manage the mailhog service.
package_name
Data type: String[1]
Name of package to install.
package_version
Data type: String[1]
Version of mailhog to install.
service_name
Data type: String[1]
Name of service to manage.
service_provider
Data type: String[1]
Init system that is used.
service_ensure
Data type: Enum['running','stopped']
The state of the service.
archive_source
Data type: Optional[Stdlib::HTTPUrl]
Location of mailhog binary release.
Default value: undef
2.0.0
- moving to puppet4/5 syntax
Dependencies
- puppet-archive (>= 4.2.0 < 5.0.0)
- puppetlabs-stdlib (>= 6.0.0 < 7.0.0)
- camptocamp-systemd (>= 1.1.1 < 3.0.0)
Copyright (C) 2017 by Bram Vogelaar <bram@attachmentgenie.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.