Andrew
2014-Jan-30 04:04 UTC
[Puppet Users] howto determine a users homedir in a class file
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+unsubscribe@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.