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. -- 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.
I believe you need to add "options => ''from="1.1.1.1"''" to your resource to do this. Cheers, Tim On Thursday, 29 March 2012 at 12:44 PM, Brandon wrote:> 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. > > -- > 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 (mailto:puppet-users@googlegroups.com). > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com (mailto:puppet-users+unsubscribe@googlegroups.com). > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- 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.
On Wednesday, March 28, 2012 6:44:09 PM UTC-7, Brandon wrote:> > 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.Have you tried: options => [''from="..."''], or even just: options => ''from="..."'' Wil -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/KPQan9SFtrIJ. 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.
Seemingly Similar Threads
- ssh_authorized_key - same key, different accounts?
- Could not evaluate: Cannot write SSH authorized keys without user
- ssh_authorized_key always ensure absent even it's present
- realizing virtual ssh_authorized_key
- ssh_authorized_key fails when home directory doesn't exist