aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/nodo.pp11
1 files changed, 11 insertions, 0 deletions
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",