don't force creation of a link if ensure => absent
diff --git a/manifests/client.pp b/manifests/client.pp
index b3e79f4..df6b7fb 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -302,6 +302,11 @@
default => absent,
}
+ $link_ensure = $ensure ? {
+ 'present' => 'link',
+ default => absent,
+ }
+
if empty($backuppc_hostname) {
fail('Please provide the hostname of the node that hosts backuppc.')
}
@@ -411,7 +416,7 @@
}
file { "${system_home_directory}/.ssh/known_hosts":
- ensure => 'link',
+ ensure => $link_ensure
target => '/dev/null',
force => 'true',
require => File["${system_home_directory}/.ssh"],