This is needed to run pybuildd as a user.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
command => 'adduser buildd sbuild',
onlyif => "getent group sbuild > /dev/null && ! getent group sbuild | grep '\\<buildd\\>' > /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',
+ }
}
}