inet_* Lookups in main.cf Template Empty

Create issue
Issue #2 resolved
Brian Flad created an issue

Hi there,

This module is exactly what we need for our environment, but looks like the inet_ configurations in the main.cf template lookups need to be scoped like the other variables since amazon_ses::config does not have them as class parameters. Maybe its a difference in our OS postfix that defaults to not starting up the network listeners by default with inet_ being empty.

Our environment:

  • Ubuntu 14.04
  • Puppet 3.7.5
  • Hiera 1.3.4
# grep inet /etc/postfix/main.cf
inet_interfaces =
inet_protocols =
# tail -3 /var/log/mail.log
Nov  4 22:41:10 jenkinsmaster01 postfix/master[18668]: warning: all network protocols are disabled (inet_protocols = )
Nov  4 22:41:10 jenkinsmaster01 postfix/master[18668]: warning: disabling all type "inet" services in master.cf
Nov  4 22:41:10 jenkinsmaster01 postfix/master[18668]: daemon started -- version 2.11.0, configuration /etc/postfix
# netstat -ntlp | grep 25
#

Fix proposal:

#!puppet

inet_interfaces = <%= scope.lookupvar('amazon_ses::inet_interfaces') %>
inet_protocols = <%= scope.lookupvar('amazon_ses::inet_protocols') %>

Comments (3)

  1. Michael Speth

    Thank you for updating this issue and solving it via PR! I have released a new version on PuppetForge just now that includes the changes for this issue. Version is 0.1.4.

  2. Log in to comment