From: Aurelien Jarno Date: Mon, 2 Apr 2018 12:07:18 +0000 (+0200) Subject: Enable lingering and persistent journal on buildds X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=4b067b042136ad4d984746466c3dec0be7db363f;p=mirror%2Fdsa-puppet.git Enable lingering and persistent journal on buildds This is needed to run pybuildd as a user. Signed-off-by: Aurelien Jarno --- diff --git a/modules/buildd/manifests/init.pp b/modules/buildd/manifests/init.pp index 5389a5fa9..e0ae02c2f 100644 --- a/modules/buildd/manifests/init.pp +++ b/modules/buildd/manifests/init.pp @@ -196,5 +196,18 @@ class buildd ($ensure=present) { command => 'adduser buildd sbuild', onlyif => "getent group sbuild > /dev/null && ! getent group sbuild | grep '\\' > /dev/null" } + + # Enable lingering for pybuildd + file { "/var/lib/systemd/linger/buildd": + ensure => present, + } + + # And persistent journald storage + 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', + } } }