From 4b067b042136ad4d984746466c3dec0be7db363f Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Mon, 2 Apr 2018 14:07:18 +0200 Subject: [PATCH] Enable lingering and persistent journal on buildds This is needed to run pybuildd as a user. Signed-off-by: Aurelien Jarno --- modules/buildd/manifests/init.pp | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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', + } } } -- 2.20.1