From: Silvio Rhatto Date: Thu, 11 Apr 2013 19:08:46 +0000 (-0300) Subject: Adding sshkey to localhost X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f4fc86e1c10e17acab81186ce593d992c8f39146;p=puppet-nodo.git Adding sshkey to localhost --- diff --git a/manifests/nodo.pp b/manifests/nodo.pp index a9cf037..5fe4ee1 100644 --- a/manifests/nodo.pp +++ b/manifests/nodo.pp @@ -123,6 +123,17 @@ class nodo { use_pam => hiera('nodo::sshd_use_pam', 'no'), } + # Add the localhost ssh key, useful when one needs + # to ssh to localhost. + sshkey { [ 'localhost', '127.0.0.1' ]: + type => ssh-rsa, + key => $::sshrsakey, + ensure => $::sshrsakey ? { + '' => absent, + default => present, + }, + } + file { "/etc/hostname": owner => "root", group => "root",