Clean up failed rsyncs every few minutes
[mirror/dsa-puppet.git] / modules / rsync / manifests / init.pp
index 267b59c..a80582c 100644 (file)
@@ -24,4 +24,15 @@ class rsync {
                rule        => '&SERVICE(tcp, 873)'
        }
 
+       file { '/usr/local/sbin/systemd-cleanup-failed-rsyncs':
+               source => 'puppet:///modules/rsync/systemd-cleanup-failed-rsyncs',
+               mode   => '0555',
+       }
+       file { '/etc/cron.d/puppet-crazy-multipath-restart': ensure => absent, }
+       concat::fragment { 'dsa-puppet-stuff--systemd-cleanup-failed-rsyncs':
+               target => '/etc/cron.d/dsa-puppet-stuff',
+               content  => @("EOF"),
+                               */10 * * * * root /usr/local/sbin/systemd-cleanup-failed-rsyncs
+                               | EOF
+       }
 }