+++ /dev/null
-##
-## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
-## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
-##
-
-SHELL=/bin/bash
-@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
}
if has_role('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,
+ concat::fragment { 'dsa-puppet-stuff--email-virtualdomains':
+ target => '/etc/cron.d/dsa-puppet-stuff',
+ 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,
+ }
}