> Hey there,
> 
> I'm playing around with the ssh::auth module and right now I want to
> create the authorized_keys file for root. But it doesn't seem to work
> as I always get this error:
> 
> puppetd[2579]: Could not apply complete catalog:
> Puppet::Util::FileType::FileTypeFlat could not write /home/root/.ssh/
> authorized_keys: No such file or directory - /home/root/.ssh/
> authorized_keys
> 
> Obviously puppet tries to write to the wrong directory. For other
> users who really live in /home/$user the module works.
> If I create a link /root/.ssh -> /home/root/.ssh puppet creates the
> authorized_keys file.
> 
> My manifests look like this:
> #site.pp
> include ssh::auth
> ssh::auth::key { "root":
>                         ensure  => "present",
>                         keytype => "dsa",
>                         home    => "/root",
>                 }
> 
> #nodes.pp
> node sshserver {
>                 ssh::auth::server { "root":
>                                         home => "/root", }
>                 ssh::auth::client { "root":
>                                         home => "/root", }
> 
> }
> 
> As you can see I added always the home-parameter but still puppet
> tries to write to /home/root.
> I'm using puppet 0.25.4.
> So where did I do the mistake?

Christian, I'm sorry for my delayed reply.  I've been offline for a while.

Your manifests look right to me.  This looks like a bug in ssh::auth.  Setting
ssh::auth::key { root: home => "/root" } should be all you'd have to do; you
shouldn't need to set home again in ::server and ::client, although I guess you
only added those when the first didn't work.

Let me look into this and I'll see what I can figure out.
Andrew.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to