On Fri, Aug 05, 2011 at 03:51:36PM +0200, Andreas Kuntzagk wrote: > Hi, > > I'm managing hosts ssh keys by using exported resources. > I do this with this little config I found in the interWeb: > > ... > @@sshkey { "$hostname,$ipaddress,$hostname-ext,$ipaddress_eth2": type => dsa, > key => $sshdsakey } > ... > Sshkey <<| |>>
You should only use $hostname as the resource title. What you want to do is @@sshkey { $hostname: ensure => present, type => dsa, key => $sshdsakey, host_aliases => [ $ipaddress, $hostname-ext, $ipaddress_eth2 ], } The problem is, that you specified host_aliases in the title and puppet doesnt warn you about that. This should be fixed in 2.7.0 (https://projects.puppetlabs.com/issues/2495) -Stefan
pgpF6nasgjWNl.pgp
Description: PGP signature