aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-11 16:08:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-11 16:08:46 -0300
commitf4fc86e1c10e17acab81186ce593d992c8f39146 (patch)
tree62eba0f4608338065f6bdf9791dfee1cccaf95d5
parent53ad04ad00bf99dec7064ecc1e448215082368a2 (diff)
downloadpuppet-nodo-f4fc86e1c10e17acab81186ce593d992c8f39146.tar.gz
puppet-nodo-f4fc86e1c10e17acab81186ce593d992c8f39146.tar.bz2
Adding sshkey to localhost
-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",