Created
December 23, 2015 13:37
-
-
Save ssm/57777a2351cdc45413e1 to your computer and use it in GitHub Desktop.
Puppet configuration for SMTP smarthost with postfix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
profile::smarthost::postfix_config: | |
mynetworks: >- | |
127.0.0.0/8 | |
[::1]/128 | |
192.0.2.0/24 | |
[2001:db8::]/32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mod 'postfix', | |
:git => 'https://github.com/camptocamp/puppet-postfix.git', | |
:ref => '1.2.14' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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