Issue #13973 has been updated by Nitesh Goel.
Hi there
Some more information. This error seems to change with the folder that I am
running the command from.
I get the error mentioned above when I am in the `/opt/puppet/lib` folder.
When I run the `puppet apply` command from /root, I get a permission denied
error for the same locked life:
err:
/Stage[appetizer]/Accounts::User::Nitesh/Accounts::Device::Shuriken[nitesh]/Ssh_authorized_key[nitesh_shuriken]:
Could not evaluate: Puppet::Util::FileType::FileTypeFlat could not write
/home/nitesh/.ssh/authorized_keys: Permission denied -
/root/puppet20120418-14068-1gw63y2.lock
However, if I run the command from the user's home directory `/home/nitesh`,
the command succeeds.
Here is my ssh_authorized_key manifest:
ssh_authorized_key { "nitesh@shuriken":
key => $key,
type => ssh-rsa,
user => "nitesh",
require => User["nitesh"],
}
----------------------------------------
Bug #13973: No such file or directory error with ssh_authorized_keys
https://projects.puppetlabs.com/issues/13973#change-60829
Author: Nitesh Goel
Status: Needs More Information
Priority: Normal
Assignee: Nitesh Goel
Category: ssh
Target version: 2.7.14
Affected Puppet version: 2.7.13
Keywords:
Branch:
When I try to set authorized keys through the ssh_authorized_key resource type,
I get the following error:
Could not evaluate: Puppet::Util::FileType::FileTypeFlat could not write
/home/nitesh/.ssh/authorized_keys: No such file or directory -
/opt/puppet/lib/puppet20120417-2519-62ftr9.lock
$vardir config is set to /opt/puppet/lib. I am saving my puppet manifests in a
git repo and running them locally without a puppet server.
--
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.