pybuildd: ensure that the build and logs dir have the correct permissions
authorAurelien Jarno <aurelien@aurel32.net>
Sun, 6 May 2018 20:41:53 +0000 (22:41 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 6 May 2018 20:42:40 +0000 (22:42 +0200)
This should go away once pybuildd issue #3 is solved.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
modules/buildd/manifests/init.pp

index f68b537..e82602b 100644 (file)
@@ -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