projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
68aa223
)
put a basic postfix config in place
author
Peter Palfrader
<peter@palfrader.org>
Wed, 30 Aug 2017 08:31:12 +0000
(08:31 +0000)
committer
Peter Palfrader
<peter@palfrader.org>
Wed, 30 Aug 2017 08:31:12 +0000
(08:31 +0000)
modules/postfix/manifests/init.pp
patch
|
blob
|
history
diff --git
a/modules/postfix/manifests/init.pp
b/modules/postfix/manifests/init.pp
index
49c84af
..
67cb8d7
100644
(file)
--- a/
modules/postfix/manifests/init.pp
+++ b/
modules/postfix/manifests/init.pp
@@
-18,4
+18,22
@@
class postfix {
munin::check { 'postfix_mailvolume': }
munin::check { 'ps_smtp': script => 'ps_' }
munin::check { 'ps_smtpd': script => 'ps_' }
munin::check { 'postfix_mailvolume': }
munin::check { 'ps_smtp': script => 'ps_' }
munin::check { 'ps_smtpd': script => 'ps_' }
+
+ if ! has_role('lists') {
+ concat { '/etc/postfix/main.cf':
+ notify => Exec['service postfix reload'],
+ }
+ concat::fragment { 'puppet-postfix-main.cf--header':
+ target => '/etc/postfix/main.cf',
+ order => '000',
+ content => template('postfix/main.cf-header.erb')
+ }
+ }
+
+ exec { 'service postfix reload':
+ path => '/usr/bin:/usr/sbin:/bin:/sbin',
+ command => 'service postfix reload',
+ refreshonly => true,
+ require => Package['postfix'],
+ }
}
}