From f9e62e53cd3d4b378220a7642f530321d416336a Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Sun, 6 May 2018 22:41:53 +0200 Subject: [PATCH] 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 --- modules/buildd/manifests/init.pp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 -- 2.20.1