diff options
-rw-r--r-- | manifests/init.pp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 6eb15b3..9d34f50 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -212,13 +212,18 @@ class sshd::base { } # Now add the key, if we've got one case $sshrsakey { - '': { info("no sshrsakey on $fqdn") } + '': { warning("no sshrsakey on $fqdn") } default: { @@sshkey{"$hostname.$domain": type => ssh-rsa, key => $sshrsakey, ensure => present, } + @@sshkey{"$ipaddress": + type => ssh-rsa, + key => $sshrsakey, + ensure => present, + } } } service{'sshd': |