get rid of status
[mirror/dsa-puppet.git] / modules / buildd / manifests / init.pp
index 2fe6b6a..ff89158 100644 (file)
@@ -142,12 +142,6 @@ class buildd ($ensure=present) {
                group   => buildd,
                owner   => buildd,
        }
-       file { '/home/buildd/status':
-               ensure  => directory,
-               mode    => '2755',
-               group   => buildd,
-               owner   => buildd,
-       }
        file { '/home/buildd/stats/graphs':
                ensure  => directory,
                mode    => '2755',
@@ -166,4 +160,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 ]'
+                }
+        }
+
 }