Dick Davies
2013-Jan-18 12:14 UTC
[Puppet Users] function to map actual pubkeys to ssh_authorised_key {} resources?
This has been niggling me for a while, since we''re snowbound today figured i''d have another crack at it. I''ve got pubkeys for our usual system accounts that we push out as file resources. But we also setup a root authorized_keys for our sysadmins. In some cases we''d like to give e.g. devs root access to servers too. Since I have their pubkey in any case (as a file on the puppet master), is there a way to extract the contents of that file and populate the relevant fields of ssh_authorized_key { } ? Ideally on a 2.6 install. Cheers. -- 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.
Aaron Grewell
2013-Jan-18 14:17 UTC
Re: [Puppet Users] function to map actual pubkeys to ssh_authorised_key {} resources?
If you move the keys into Puppet variables (ideally retrieved via Hiera) you can then use them to create both the key files and the ssh_authorized_key entries. . -- 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.