You can change the path to authorized_keys as it is done in my ssh puppet module (http://forge.puppetlabs.com/thbe/ssh). The next version of this module will give you the possibility to deploy usernames with keys as parameters but I'm not sure when I'll find time to implement this. Till now you have to put the username key files manually in /etc/ssh.d/
Regards Thomas 2014-01-30 Andrew <andrewgray1...@gmail.com>: > So ... > I am tasked with managing ssh keys for which I want to use puppet to do > the deployment. > I dont know ahead of time which users will using/assigned keys so, my > question is. > > how to determine the homedir of any user? is there a variable present with > this info without resorting to an exec? > > Not all users have /home/$USER homedirs, (eg apache=/var/www, > puppet=/var/lib/puppet), > > I need to create a .ssh dir in the users homedir and copy some private > keys in there. > The authorized_keys type includes a user property, so the public key is > easy. > > kinda stumped ... > Any ideas? > > Thanks in advance. > > Regards, > Andrew > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/1944e04e-e98c-4cb6-8e3f-e470c88ce6ad%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- Linux ... enjoy the ride! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAELoU1MBZ6dO9Sz_oAwK%2B%3Dd1JfyYf3ysovGfbSgTW%2B9uLOv5ZA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.