Skip to content

Commit

Permalink
use a variable for host_aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
saz committed Nov 23, 2012
1 parent b0a64a6 commit d6571f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions manifests/hostkeys.pp
Original file line number Diff line number Diff line change
@@ -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,
}
Expand Down

0 comments on commit d6571f8

Please sign in to comment.