X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fsystemd%2Fmanifests%2Finit.pp;h=1dd41cda54b8d7e7ecd06a12a4ea7a582fdb8292;hb=2972577c62e8dfa15c111d5072b5755c3d1550e3;hp=08f10fc50db60e88a180df9a211f50a65766c054;hpb=b2fc3cd4df85fc3503b8fb66e3e2d5d6abf76875;p=mirror%2Fdsa-puppet.git diff --git a/modules/systemd/manifests/init.pp b/modules/systemd/manifests/init.pp index 08f10fc50..1dd41cda5 100644 --- a/modules/systemd/manifests/init.pp +++ b/modules/systemd/manifests/init.pp @@ -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 + } }