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:
8bdb11e
)
Only check out email-virtualdomains on mailrelays, not all mx-es
author
Tollef Fog Heen
<tfheen@err.no>
Mon, 7 Oct 2013 05:20:53 +0000
(07:20 +0200)
committer
Tollef Fog Heen
<tfheen@err.no>
Mon, 7 Oct 2013 05:20:53 +0000
(07:20 +0200)
modules/exim/manifests/mx.pp
patch
|
blob
|
history
diff --git
a/modules/exim/manifests/mx.pp
b/modules/exim/manifests/mx.pp
index
e035abb
..
8931ec6
100644
(file)
--- a/
modules/exim/manifests/mx.pp
+++ b/
modules/exim/manifests/mx.pp
@@
-33,7
+33,13
@@
class exim::mx inherits exim {
ensure => installed,
}
- file { '/etc/cron.d/dsa-email-virtualdomains':
- source => 'puppet:///modules/exim/dsa-email-virtualdomains.cron',
+ if getfromhash($site::nodeinfo, 'mailrelay') {
+ file { '/etc/cron.d/dsa-email-virtualdomains':
+ source => 'puppet:///modules/exim/dsa-email-virtualdomains.cron',
+ }
+ } else {
+ file { '/etc/cron.d/dsa-email-virtualdomains':
+ ensure => absent,
+ }
}
}