Issue #8986 has been updated by Kelsey Hightower.
After updating my init.pp I can confirm this issue. It was only working for me
because the module was creating `/var/lib/public-keys` before writing
`puppet.pub`.
[root@agent ~]# puppet agent --test
info: Caching catalog for agent.lab.com
info: Applying configuration version '1313370151'
notice: /Stage[main]/Sshkeys/File[/tmp/public-keys]/ensure: created
notice:
/Stage[main]/Sshkeys/Ssh_authorized_key[puppet_authorized_keys]/ensure: created
err: /Stage[main]/Sshkeys/Ssh_authorized_key[puppet_authorized_keys]: Could
not evaluate: Puppet::Util::FileType::FileTypeFlat could not write
/tmp/public-keys/puppet.pub: Permission denied - /tmp/public-keys/puppet.pub
----------------------------------------
Bug #8986: ssh_authorized_key not setting user permissions in the proper manner.
https://projects.puppetlabs.com/issues/8986
Author: Trevor Vaughan
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version: 2.7.3rc1
Keywords:
Branch:
In the olden days, ssh_authorized_key, when provided with the 'user' option,
would simply set the ownership of the key to that user.
This worked as I expected.
Now, the ssh_authorized_key type appears to try to write the file *as* the
user. This is incorrect since you may, or may not, be writing the key to
somewhere that the user is allowed write access.
To work around this problem, you need to declare a file statement for every
ssh_authorized_key statement which is cumbersome.
--
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.