from= in ssh key

16 views
Skip to first unread message

Brandon

unread,
Mar 28, 2012, 9:44:09 PM3/28/12
to Puppet Users
Fairly new to puppet here and trying to figure out a couple of issues
with distributing ssh keys. First one is how can I distribute a
public key with the from= field at the beginning. What I currently
have working is

ssh_authorized_key { "brandon":
user => "brandon",
ensure => "present",
type => "ssh-rsa",
key => "AAAAB3NzaC1yc2E......
}

which adds

ssh-rsa AAAAB3NzaC1yc2E......

to my authorized_keys just fine. But how do I prepend that with

from="1.1.1.1"

? Everything I've tried doesn't work. Thanks.

Tim Sharpe

unread,
Mar 29, 2012, 1:13:58 AM3/29/12
to puppet...@googlegroups.com
I believe you need to add "options => 'from="1.1.1.1"'" to your resource to do this.

Cheers,
Tim
--
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.

Wil Cooley

unread,
Mar 29, 2012, 1:19:03 AM3/29/12
to puppet...@googlegroups.com
Have you tried:

  options => ['from="..."'],

or even just:

  options => 'from="..."'

Wil
Reply all
Reply to author
Forward
0 new messages