--- /dev/null
+# our mailrelay exim class
+class exim::mailrelay {
+ class { 'exim::mx':
+ is_mailrelay => true,
+ }
+
+ concat::fragment { 'puppet-crontab--email-virtualdomains':
+ target => '/etc/cron.d/puppet-crontab',
+ content => @(EOF)
+ @hourly root if [ ! -d /etc/exim4/email-virtualdomains ]; then cd /etc/exim4 && git clone mail-git:email-virtualdomains ; fi && cd /etc/exim4/email-virtualdomains && git pull --quiet --ff-only
+ | EOF
+ }
+}
package { 'monitoring-plugins-standard':
ensure => installed,
}
-
- if $exim::is_mailrelay {
- concat::fragment { 'puppet-crontab--email-virtualdomains':
- target => '/etc/cron.d/puppet-crontab',
- content => @(EOF)
- @hourly root if [ ! -d /etc/exim4/email-virtualdomains ]; then cd /etc/exim4 && git clone mail-git:email-virtualdomains ; fi && cd /etc/exim4/email-virtualdomains && git pull --quiet --ff-only
- | EOF
- }
- }
- file { '/etc/cron.d/dsa-email-virtualdomains': ensure => absent, }
}