diff --git a/manifests/hostkeys.pp b/manifests/hostkeys.pp index 86176f679..68e039438 100644 --- a/manifests/hostkeys.pp +++ b/manifests/hostkeys.pp @@ -1,11 +1,13 @@ class ssh::hostkeys { + $host_aliases = [ $::fqdn, $::hostname, $::ipaddress ] + @@sshkey { "${::fqdn}_dsa": - host_aliases => [ $::fqdn, $::hostname, $::ipaddress ], + host_aliases => $host_aliases, type => dsa, key => $::sshdsakey, } @@sshkey { "${::fqdn}_rsa": - host_aliases => [ $::fqdn, $::hostname, $::ipaddress ], + host_aliases => $host_aliases, type => rsa, key => $::sshrsakey, }