On Thu, Apr 19, 2012 at 07:20:10AM -0700, Maurice Meeden wrote:
Hi group,

we want to manage our authorized_keys with puppet and are trying
ssh_authorized_keys. Everything works as expected, but if ~/.ssh/
authorized_keys contains en empty line, puppet raises an error and
generate a complete new file:

debug: Prefetching parsed resources for ssh_authorized_key
err: Could not prefetch ssh_authorized_key provider 'parsed': Could
not parse line "" at /root/.ssh/authorized_keys:3

If the line contains a blank, it works. How can we change this
behaviour? We've looked into /usr/lib64/ruby/vendor_ruby/1.8/puppet/
provider/ssh_authorized_key/parsed.rb but I believe the match
statement is correct:

text_line :blank, :match => /^\s+/
The match means »one or more whitespace characters at the beginning of
a line«. So it would match » aaa« or » « but not »«. It should read

text_line :blank, :match => /^\s*$/

which means »beginning of a line, followed by zero, one or more
whitespace characters, followed by the end of line.

Would you mind opening a ticket on redmine? This is clearly a bug


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.

Search Discussions

Discussion Posts


Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
grouppuppet-users @
postedApr 19, '12 at 2:24p
activeApr 19, '12 at 10:09p

2 users in discussion

Stefan Schulte: 1 post Maurice Meeden: 1 post



site design / logo © 2022 Grokbase