]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/buildd/manifests/init.pp
whitespace fix
[dsa-puppet.git] / modules / buildd / manifests / init.pp
index ff89158d512d9a4c68a6f4071ccae12909694bc4..0c109e069039c5bf8823027def276e66a0d2109f 100644 (file)
@@ -142,6 +142,12 @@ class buildd ($ensure=present) {
                group   => buildd,
                owner   => buildd,
        }
+       file { '/home/buildd/stats':
+               ensure  => directory,
+               mode    => '2755',
+               group   => buildd,
+               owner   => buildd,
+       }
        file { '/home/buildd/stats/graphs':
                ensure  => directory,
                mode    => '2755',
@@ -160,11 +166,11 @@ class buildd ($ensure=present) {
                owner   => buildd,
        }
 
-        if ! $::buildd_key {
-                exec { 'create-buildd-key':
-                        command => '/bin/su - buildd -c \'mkdir -p -m 02700 .ssh && ssh-keygen -C "`whoami`@`hostname` (`date +%Y-%m-%d`)" -P "" -f .ssh/id_rsa -q\'',
-                        onlyif  => '/usr/bin/getent passwd buildd > /dev/null && ! [ -e /home/buildd/.ssh/id_rsa ]'
-                }
-        }
+       if ! $::buildd_key {
+               exec { 'create-buildd-key':
+                       command => '/bin/su - buildd -c \'mkdir -p -m 02700 .ssh && ssh-keygen -C "`whoami`@`hostname` (`date +%Y-%m-%d`)" -P "" -f .ssh/id_rsa -q\'',
+                       onlyif  => '/usr/bin/getent passwd buildd > /dev/null && ! [ -e /home/buildd/.ssh/id_rsa ]'
+               }
+       }
 
 }