seph
2009-04-21 20:00:18 UTC
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 => "***@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-***@googlegroups.com
To unsubscribe from this group, send email to puppet-users+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---
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 => "***@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-***@googlegroups.com
To unsubscribe from this group, send email to puppet-users+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---