Forge Home

ssmtp

Puppet module for ssmtp

15,396 downloads

13,448 latest version

3.5 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 1.1.0 (latest)
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
released Feb 24th 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'netmanagers-ssmtp', '1.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add netmanagers-ssmtp
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install netmanagers-ssmtp --version 1.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

netmanagers/ssmtp — version 1.1.0 Feb 24th 2014

Puppet module: ssmtp

This is a Puppet module for ssmtp based on the second generation layout ("NextGen") of Example42 Puppet Modules.

Made by Javier Bertoli / Netmanagers

Official site: http://www.netmanagers.com.ar

Official git repository: http://github.com/netmanagers/puppet-ssmtp

Released under the terms of Apache 2 License.

This module depends on R.I.Pienaar's concat module (https://github.com/ripienaar/puppet-concat).

This module requires functions provided by the Example42 Puppi module (you need it even if you don't use and install Puppi)

USAGE - Basic management

  • All parameters can be set using Hiera. See the manifests to see what can be set.

  • Install ssmtp with default distro's settings

      class { 'ssmtp': }
    
  • You can install and configure overriding default parameters, using a template (ie., the included one):

      class { 'ssmtp': 
        template         => 'ssmtp/ssmtp.conf.erb',
        root_destination => 'postmaster',
        mailhub          => 'my.shiny.mail.server',
      }
    
  • Install a specific version of ssmtp package

      class { 'ssmtp':
        version => '1.0.1',
      }
    
  • Remove ssmtp resources

      class { 'ssmtp':
        absent => true
      }
    
  • Enable auditing without without making changes on existing ssmtp configuration files

      class { 'ssmtp':
        audit_only => true
      }
    
  • Module dry-run: Do not make any change on all the resources provided by the module

      class { 'ssmtp':
        noops => true
      }
    
  • If you want to add revaliases, you can use ssmtp::revalias. See man ssmtp(8) and the define for more details:

      ssmtp::revalias { 'postmaster':
        from    => 'javier@netmanagers.com.ar',
        mailhub => 'my.other.mailhub',
      }
    

USAGE - Overrides and Customizations

  • Use custom sources for main config file

      class { 'ssmtp':
        source => [ "puppet:///modules/netmanagers/ssmtp/ssmtp.conf-${hostname}" , "puppet:///modules/netmanagers/ssmtp/ssmtp.conf" ], 
      }
    
  • Use custom template for main config file. Note that template and source arguments are alternative.

      class { 'ssmtp':
        template => 'netmanagers/ssmtp/ssmtp.conf.erb',
      }
    
  • Automatically include a custom subclass

      class { 'ssmtp':
        my_class => 'netmanagers::my_ssmtp',
      }
    

Build Status