Ah ha. After a long time debugging this on irc (thanks guys!) I found
my typo. I had defined unixadmins twice, and one was wrong. Though if
people have suggestions for a better way to implement this sort of
thing, I''d love to hear them.
seph
On Apr 21, 4:00 pm, seph <s...@directionless.org>
wrote:> I''m trying to use ssh_authorized_key to manage my user''s
ssh keys. I
> basically have this (across a couple of files):
>
> class user::virtual {
> @user { "seph":
> ensure => "present",
> uid => "2001",
> comment => "seph",
> home => "/home/seph",
> shell => "/bin/bash",
> allowdupe => false,
> managehome => true,
> }
>
> @ssh_authorized_key { "seph-2008":
> ensure => present,
> key => "...",
> type => "ssh-dss",
> name => "seph@macbook-2008",
> user => seph,
> }
> }
>
> class user::unixadmins inherits user::virtual {
> realize(
> User["seph"],
> ssh_authorized_key["seph-2008"],
> )
> }
>
> node test {
> include user::unixadmins
> }
>
> I correctly get the user seph, but not the ssh authorized key. If I
> switch to a real ssh_authorized_key by removing the @, then it creates
> /home/seph/.ssh/authorized_keys correctly. But I can''t figure out
how to
> realize it when it''s a virtual resource. I''ve tried a
couple of ways.
>
> Any suggestions for how to do this? Or if there''s some better
approach
> here?
>
> thanks
> seph
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---