class nodo::subsystem::sshd { $manage = lookup('nodo::subsystem::sshd::manage', undef, undef, true) if $manage == true { 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, }, } } }