Version information
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2021.7.x
- Puppet >= 7.24 < 9.0.0
- , , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'stjeanp-mail_aliases', '0.4.0'
Learn more about managing modules with a PuppetfileDocumentation
mail_aliases
Table of Contents
- Description
- Setup - The basics of getting started with mail_aliases
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Description
The mail_aliases module manages mail aliases on the target systems using data stored in hiera. It is capable of both creating and removing aliases, with the default being to create them.
Setup
Setup Requirements
This will only work if sendmail or postfix is installed on the target system. Please ensure that one of those packages is installed, otherwise you're going to get failures.
Please ensure that the puppetlabs/mailalias_core module is installed in your Puppetfile.
Beginning with mail_aliases
Configure your hiera data however you would like, following the example below. Then update your Puppetfile to install stjeanp/mail_aliases and puppetlabs/mailalias_core modules.
Usage
mail_aliases:
root:
recipient: 'someone@somewhere.else.com'
user:
recipient: 'their@real.address'
olduser:
recipient: 'not@work.anymore'
ensure: absent
The default behavior is to create an alias, so if you need to remove one, make sure to include the 'ensure: absent' line.
include ::mail_aliases
Limitations
Due to testing VM availability, it only supports systems whose OS Family fact is RedHat, Debian, or SUSE.
Development
Issues, merge requests, and feedback are always welcome.
Dependencies
- puppetlabs/mailalias_core (>= 1.0.0 < 9.0.0)