On Fri, 12 Mar 2010, Bob Belnap wrote:
> I'm trying to reuse an ssh_authorized_key, but I'm having some problems.
If you want to use the same key in different ways (e.g. sometimes
with and sometimes without options => "command=...") then you have to
use separate ssh_authorized_key resources, with different titles and
different names, like this:
$bob_ssh_key = "*snip*"
$bob_ssh_key_type = "ssh_dss"
ssh_authorized_key {"bob":
name => "b...@somehost",
ensure => present,
key => $bob_ssh_key,
type => $bob_ssh_key_type,
user => "root",
}
ssh_authorized_key {"bob to repo": # title cannot be "bob"
name => "b...@somehost to repo", # name cannot be "b...@somehost"
ensure => present,
key => $bob_ssh_key,
type => $bob_ssh_key_type,
user => "repo",
options => "command=\"svnserve -t --tunnel-user=bob\"",
}
--apb (Alan Barrett)
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" 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-users?hl=en.