diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2013-04-11 16:08:46 -0300 | 
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2013-04-11 16:08:46 -0300 | 
| commit | f4fc86e1c10e17acab81186ce593d992c8f39146 (patch) | |
| tree | 62eba0f4608338065f6bdf9791dfee1cccaf95d5 | |
| parent | 53ad04ad00bf99dec7064ecc1e448215082368a2 (diff) | |
| download | puppet-nodo-f4fc86e1c10e17acab81186ce593d992c8f39146.tar.gz puppet-nodo-f4fc86e1c10e17acab81186ce593d992c8f39146.tar.bz2  | |
Adding sshkey to localhost
| -rw-r--r-- | manifests/nodo.pp | 11 | 
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",  | 
