I've got a situation where a manifest fails when writing one particular key
for a user. What I have is a manifest that looks like this:
class my::accounts () {
Ssh_authorized_key {
ensure => present,
type => ssh-dss,
}
Then, after making sure the user, group, and authorized_keys2 file exist:
ssh_authorized_key { "key-name-1":
key => "omitted",
user => "user",
target => "/home/user/.ssh/authorized_keys2",
require => File["/home/user/.ssh/authorized_keys2"],
}
There's a lengthy series of these -- most of them work, but one will fail
with this error:
Error: Puppet::Util::FileType::FileTypeFlat could not write
/home/user/.ssh/authorized_keys2: Permission denied -
/home/user/.ssh/authorized_keys2
Error: /Stage[main]/My::Accounts/Ssh_authorized_key[key-name-8]: Could not
evaluate: Puppet::Util::FileType::FileTypeFlat could nto write
/home/xmmgr/.ssh/authorized_keys2: Permission denied -
/home/user/.ssh/authorized_keys2
This is not the first nor the last key, and I get around 19 entries in the
file, so I'm not seeing why this one in particular is failing.
Structurally, it looks exactly like all the others. Any ideas?
Thanks!
*
*
*Bret Wortman*
<http://damascusgrp.com/>
http://damascusgrp.com/ <http://bretwortman.com/>
http://twitter.com/BretWortman
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.