comparison modules/postfix/manifests/init.pp @ 62:f192048f9b7e puppet-3.6

Add CentOS 7 config for postfix to take advantage of Postfix 2.10 and Postscreen Also, move files to the module
author IBBoard <dev@ibboard.co.uk>
date Sat, 12 Sep 2015 21:00:55 +0100
parents 6bbc86f6cee5
children a2d6032c6811
comparison
equal deleted inserted replaced
61:c2f66d0f2a43 62:f192048f9b7e
28 } 28 }
29 file { '/etc/postfix/main.cf': 29 file { '/etc/postfix/main.cf':
30 content => template('postfix/main.cf.erb'), 30 content => template('postfix/main.cf.erb'),
31 } 31 }
32 file { '/etc/postfix/master.cf': 32 file { '/etc/postfix/master.cf':
33 source => 'puppet:///common/postfix/master.cf' 33 source => [
34 "puppet:///modules/postfix/master.${operatingsystem}${operatingsystemmajrelease}.cf",
35 'puppet:///modules/postfix/master.cf'
36 ]
34 } 37 }
35 #Hosted domains 38 #Hosted domains
36 file { '/etc/postfix/vdomains': 39 file { '/etc/postfix/vdomains':
37 source => 'puppet:///private/postfix/vdomains', 40 source => 'puppet:///private/postfix/vdomains',
38 } 41 }
97 #SPF checking 100 #SPF checking
98 file { '/usr/local/lib/postfix-policyd-spf-perl/': 101 file { '/usr/local/lib/postfix-policyd-spf-perl/':
99 ensure => directory 102 ensure => directory
100 } 103 }
101 file { '/usr/local/lib/postfix-policyd-spf-perl/postfix-policyd-spf-perl': 104 file { '/usr/local/lib/postfix-policyd-spf-perl/postfix-policyd-spf-perl':
102 source => 'puppet:///common/postfix/postfix-policyd-spf-perl', 105 source => 'puppet:///modules/postfix/postfix-policyd-spf-perl',
103 } 106 }
104 $perl_pkgs = [ 'perl', 'perl-NetAddr-IP', 'perl-Mail-SPF', 'perl-version', 'perl-Sys-Hostname-Long'] 107 $perl_pkgs = [ 'perl', 'perl-NetAddr-IP', 'perl-Mail-SPF', 'perl-version', 'perl-Sys-Hostname-Long']
105 package { $perl_pkgs: 108 package { $perl_pkgs:
106 ensure => latest, 109 ensure => latest,
107 } 110 }