diff options
-rw-r--r-- | manifests/defines/ssh_local_key.pp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/defines/ssh_local_key.pp b/manifests/defines/ssh_local_key.pp index a84b86c..b41e618 100644 --- a/manifests/defines/ssh_local_key.pp +++ b/manifests/defines/ssh_local_key.pp @@ -22,7 +22,10 @@ define ssh_local_key( owner => $owner, group => $group, mode => 0400, - source => "$source", + source => $ensure ? { + 'present' => $source, + default => undef, + }, require => File["${home}/.ssh"], } } |