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 <<| |>> Unfortunately the keys are duplicated every time puppet runs. Is this a bug in puppet or is that config bad? regards, Andreas -- Andreas Kuntzagk SystemAdministrator MDC Berlin / BIMSB Tel.: +49 30 9406 2997 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 08/05/2011 09:51 AM, Andreas Kuntzagk wrote:> > @@sshkey { "$hostname,$ipaddress,$hostname-ext,$ipaddress_eth2": type > => dsa, key => $sshdsakey } >$hostname-ext <---- has a smell Could you maybe help the parser out by throwing some braces in there? -- vagn -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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
Thanks, that fixed this. Stefan Schulte wrote:> 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-- Andreas Kuntzagk SystemAdministrator MDC Berlin / BIMSB Tel.: +49 30 9406 2997 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.