From f4fc86e1c10e17acab81186ce593d992c8f39146 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 11 Apr 2013 16:08:46 -0300 Subject: Adding sshkey to localhost --- manifests/nodo.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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", -- cgit v1.2.3