Merge branch 'zobel-salsa'
[mirror/dsa-puppet.git] / modules / systemd / manifests / init.pp
index 08f10fc..1dd41cd 100644 (file)
@@ -13,9 +13,16 @@ class systemd {
                file { '/etc/systemd/journald.conf.d/persistency.conf':
                        source => 'puppet:///modules/systemd/persistency.conf',
                }
-               exec {'systemctl force-reload systemd-journald':
-                       refreshonly => true
-               }
        }
 
+       file { '/usr/local/sbin/systemd-cleanup-failed':
+               source => 'puppet:///modules/systemd/systemd-cleanup-failed',
+               mode   => '0555',
+       }
+       concat::fragment { 'dsa-puppet-stuff--systemd-cleanup-failed':
+               target => '/etc/cron.d/dsa-puppet-stuff',
+               content  => @("EOF"),
+                               */10 * * * * root /usr/local/sbin/systemd-cleanup-failed
+                               | EOF
+       }
 }