switch ssh-keygens to ssh::keygen
[mirror/dsa-puppet.git] / modules / buildd / manifests / init.pp
index 29a3524..a8affb0 100644 (file)
@@ -91,12 +91,7 @@ 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 ]'
-                       }
-               }
+               ssh::keygen {'buildd': }
 
                #
                # buildd/pybuildd configuration