diff options
Diffstat (limited to 'manifests/subsystem/ssh/known_hosts.pp')
-rw-r--r-- | manifests/subsystem/ssh/known_hosts.pp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/manifests/subsystem/ssh/known_hosts.pp b/manifests/subsystem/ssh/known_hosts.pp index c20b973..d49dc7d 100644 --- a/manifests/subsystem/ssh/known_hosts.pp +++ b/manifests/subsystem/ssh/known_hosts.pp @@ -21,8 +21,8 @@ define nodo::subsystem::ssh::known_host( # You can choose to include the host's fingeprints # directly into the known_hosts file. if $::sshrsakey != '' { - line { 'known_hosts-localhost-rsa-${owner}': - file => "${home}/.ssh/known_hosts", + file_line { 'known_hosts-localhost-rsa-${owner}': + path => "${home}/.ssh/known_hosts", line => "localhost ssh-rsa ${::sshrsakey}", ensure => $ssh_localhost_auth ? { 'fingerprint' => present, @@ -33,8 +33,8 @@ define nodo::subsystem::ssh::known_host( } if $::sshdsakey != '' { - line { 'known_hosts-localhost-dsa-${owner}': - file => "${home}/.ssh/known_hosts", + file_line { 'known_hosts-localhost-dsa-${owner}': + path => "${home}/.ssh/known_hosts", line => "localhost ssh-dss ${::sshdsakey}", ensure => $ssh_localhost_auth ? { 'fingerprint' => present, @@ -45,8 +45,8 @@ define nodo::subsystem::ssh::known_host( } if $::sshecdsakey != '' { - line { 'known_hosts-localhost-ecdsa-${owner}': - file => "${home}/.ssh/known_hosts", + file_line { 'known_hosts-localhost-ecdsa-${owner}': + path => "${home}/.ssh/known_hosts", line => "localhost ecdsa-sha2-nistp256 ${::sshedsakey}", ensure => $ssh_localhost_auth ? { 'fingerprint' => present, |