I am using puppet to manage ssh keys, it works fine all but one system, which its a true RHEL6 (vs CentOS and Amazon distos) (Puppet 3.1.1). Not sure even sure where to look to troubleshoot the issue. I have disabled selinux for testing too. Any suggestions would be greatly appreciated.
Here is the manifest snipplet
Using viurtal user and heria
$user = hiera($title,nil,"${environment}/user")
ssh_authorized_key { $title:
ensure => 'present',
type => 'ssh-rsa',
key => $user['sshkey'],
user => $title,
require => User[$title],
}
And the errors from the puppet run.
Puppet (err): Puppet::Util::FileType::FileTypeFlat could not write /home/jsmith/.ssh/authorized_keys: cannot generate tempfile `/puppet20130331-3128-n19xxm-9'
Tue Apr 02 12:42:33 +0000 2013 /Stage[main]/User::Users/User::Virtual[jsmith]/Ssh_authorized_key[elondon] (err): Could not evaluate: Puppet::Util::FileType::FileTypeFlat could not write /home/jsmith/.ssh/authorized_keys: cannot generate tempfile `/puppet20130402-3219-n91x6m-9'