aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/sshd.pp
blob: 3327de8023dbfced0adef104f0e86598cab6274b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class nodo::subsystem::sshd {
  include ::sshd

  # 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,
    },
  }
}