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+/

It seems that puppet fails before any matching is done, but I'm not
familar with ruby and puppet development.

We are using puppet 2.6.12 on SLES11.

Thanks in advance and greetings, Maurice

You received this message because you are subscribed to the Google Groups "Puppet Users" 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-users?hl=en.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 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 © 2023 Grokbase