generate ssh key for backuppc user
diff --git a/manifests/init.pp b/manifests/init.pp
index 7e4dfca..4bda6f2 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -49,6 +49,12 @@
group => 'www-data'
}
+ exec { 'backuppc-ssh-keygen':
+ command => "/usr/bin/ssh-keygen -f ${topdir}/.ssh/id_rsa -C 'BackupPC on ${::fqdn}' -N ''",
+ user => 'backuppc',
+ unless => "test -f ${topdir}/.ssh/id_rsa"
+ }
+
# Export backuppc's authorized key to all clients
@@ssh_authorized_key { "backuppc_${fqdn}":
ensure => present,