From d92e7f77b9a668bedecab5415169edc8226f1f41 Mon Sep 17 00:00:00 2001 From: Steffen Zieger Date: Fri, 30 Nov 2012 22:34:15 +0100 Subject: [PATCH] use ipaddresses() function in ssh::hostkeys --- manifests/hostkeys.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,