From: Aurelien Jarno Date: Sun, 6 May 2018 20:41:53 +0000 (+0200) Subject: pybuildd: ensure that the build and logs dir have the correct permissions X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=f9e62e53cd3d4b378220a7642f530321d416336a;p=mirror%2Fdsa-puppet.git pybuildd: ensure that the build and logs dir have the correct permissions This should go away once pybuildd issue #3 is solved. Signed-off-by: Aurelien Jarno --- diff --git a/modules/buildd/manifests/init.pp b/modules/buildd/manifests/init.pp index f68b53706..e82602bba 100644 --- a/modules/buildd/manifests/init.pp +++ b/modules/buildd/manifests/init.pp @@ -140,6 +140,22 @@ class buildd ($ensure=present) { file { '/etc/systemd/journald.conf.d/persistency.conf': source => 'puppet:///modules/systemd/persistency.conf', } + + # Make sure that the build and logs directories have the correct + # permissions. This should go away once pybuildd issue #3 is + # solved. + file { '/home/buildd/build': + ensure => directory, + mode => '2750', + group => buildd, + owner => buildd, + } + file { '/home/buildd/logs': + ensure => directory, + mode => '2750', + group => buildd, + owner => buildd, + } } else { # # buildd configuration