X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fsystemd%2Fmanifests%2Finit.pp;h=1dd41cda54b8d7e7ecd06a12a4ea7a582fdb8292;hb=2972577c62e8dfa15c111d5072b5755c3d1550e3;hp=3caa98bc6970787db0f4b1381b993396e050f2e1;hpb=8bd3f71edda5a06bca3327527738f2d5abdd29f1;p=mirror%2Fdsa-puppet.git diff --git a/modules/systemd/manifests/init.pp b/modules/systemd/manifests/init.pp index 3caa98bc6..1dd41cda5 100644 --- a/modules/systemd/manifests/init.pp +++ b/modules/systemd/manifests/init.pp @@ -2,4 +2,27 @@ class systemd { file { '/etc/systemd/journald.conf': source => 'puppet:///modules/systemd/journald.conf', } + + systemd::mask { 'sys-kernel-debug-tracing.mount': } + systemd::mask { 'sys-kernel-debug.mount': } + + if $::hostname == 'godard' { + exec {'mkdir -p /etc/systemd/journald.conf.d': + unless => 'test -d /etc/systemd/journald.conf.d', + } + file { '/etc/systemd/journald.conf.d/persistency.conf': + source => 'puppet:///modules/systemd/persistency.conf', + } + } + + 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 + } }