diff --git a/manifests/hostkeys.pp b/manifests/hostkeys.pp index 68e039438..68bb77d76 100644 --- a/manifests/hostkeys.pp +++ b/manifests/hostkeys.pp @@ -1,5 +1,6 @@ class ssh::hostkeys { - $host_aliases = [ $::fqdn, $::hostname, $::ipaddress ] + $ipaddresses = ipaddresses() + $host_aliases = flatten([ $::fqdn, $::hostname, $::ipaddresses ]) @@sshkey { "${::fqdn}_dsa": host_aliases => $host_aliases,