Issue #2175 has been updated by Stefan Schulte.
Hi John,
you are seeing multiple keys because puppet parses the line as
<pre>
ssh_authorized_key { 'blah blah app@host':
ensure => present,
type => rsa,
key => bla,
}
</pre>
which does not match your resource.
Better value validation that would raise an error rather than adding the same
key over and over again comes with #7114. Unfortunately this caused a
regression (also described in #7114) so you may want to wait until this one is
merged in, too.
----------------------------------------
Bug #2175: ssh_authorized_key: error with trailing space
https://projects.puppetlabs.com/issues/2175
Author: Cedric Jeanneret
Status: Accepted
Priority: Normal
Assignee:
Category: ssh
Target version:
Affected Puppet version: 0.24.7
Keywords: 2.6.x
Branch:
Hello,
I just discover a little bug with this type:
when key string has a trailing space (in my case at the end of it), puppet
keeps on adding the key in authorized_keys file (resulting "some" duplicated
lines...). Removing this space solved my problem.
Maybe there's an error while matching complete string... ?
See you.
C.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.