use a unique resource name but the name parameter for fqdn
diff --git a/manifests/client.pp b/manifests/client.pp
index c03b665..20a7cce 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -216,10 +216,6 @@
# useful for running the backup via nice or ionice, in order to reduce the
# impact of large backups on the client.
#
-# [*export_keys*]
-# Do not run the @sshkeys exporter. This can be used for compatibility with
-# other ssh classes which already manage ssh exported keys
-#
# === Examples
#
# See tests folder.
@@ -295,7 +291,6 @@
$hosts_file_user = 'backuppc',
$hosts_file_more_users = '',
$sudo_prepend = '',
- $export_keys = true,
) {
include backuppc::params
@@ -430,14 +425,13 @@
}
}
- if $export_keys {
- if $facts['networking']['fqdn'] != $backuppc_hostname {
- @@sshkey { "bpc-${facts['networking']['fqdn']}":
- ensure => $ensure,
- type => 'ssh-rsa',
- key => $facts['ssh']['rsa']['key'],
- tag => "backuppc_sshkeys_${backuppc_hostname}",
- }
+ if $facts['networking']['fqdn'] != $backuppc_hostname {
+ @@sshkey { "bpc-${facts['networking']['fqdn']}":
+ name => $facts['networking']['fqdn'],
+ ensure => $ensure,
+ type => 'ssh-rsa',
+ key => $facts['ssh']['rsa']['key'],
+ tag => "backuppc_sshkeys_${backuppc_hostname}",
}
}