Skip to content

Instantly share code, notes, and snippets.

@ssm
Created December 23, 2015 13:37
Show Gist options
  • Save ssm/57777a2351cdc45413e1 to your computer and use it in GitHub Desktop.
Save ssm/57777a2351cdc45413e1 to your computer and use it in GitHub Desktop.
Puppet configuration for SMTP smarthost with postfix
profile::smarthost::postfix_config:
mynetworks: >-
127.0.0.0/8
[::1]/128
192.0.2.0/24
[2001:db8::]/32
mod 'postfix',
:git => 'https://github.com/camptocamp/puppet-postfix.git',
:ref => '1.2.14'
class profile::smarthost {
include ::postfix
$postfix_config = hiera('profile::smarthost::postfix_config', {})
create_resources('postfix::config', $postfix_config, { ensure => present })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment