switch ssh-keygens to ssh::keygen
[mirror/dsa-puppet.git] / modules / roles / manifests / static_base.pp
index bade119..c8b8398 100644 (file)
@@ -1,10 +1,5 @@
 class roles::static_base {
-       if ! $::staticsync_key {
-               exec { 'create-staticsync-key':
-                       command => '/bin/su - staticsync -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 staticsync > /dev/null && ! [ -e /home/staticsync/.ssh/id_rsa ]'
-               }
-       }
+       ssh::keygen {'staticsync': }
 
        file { '/etc/static-components.conf':
                content => template('roles/static-mirroring/static-components.conf.erb'),