Skip to content

Commit

Permalink
use ipaddresses() function in ssh::hostkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
saz committed Nov 30, 2012
1 parent d6571f8 commit d92e7f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/hostkeys.pp
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit d92e7f7

Please sign in to comment.