From d6571f8c43ac55d20a6afd8a8ce3f86ac4b0d7a4 Mon Sep 17 00:00:00 2001 From: Steffen Zieger Date: Fri, 23 Nov 2012 17:42:11 +0100 Subject: [PATCH] use a variable for host_aliases --- manifests/hostkeys.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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, }