I meant, how do I tell what hash the server will know how to use? I
suppose it shouldn't matter much. I'll just copy the hash out of the
/etc/shadow file. If I get more than 10 users I'll want to figure out
how to use LDAP anyway.
I hadn't realized the ssh_authorized_key name wasn't limited to what's
in the users .pub file. So making those unique shouldn't be too hard.
>This stuff is tricky with the language as it stands. The way I've solved this (and seen others solve this) in the past is that rather than trying to pass in arrays you build a hash in hiera for your users and then pass the entire hash to create_resources('mycustomusersdefine', hashname) to have it create a call to the define for each element of the hash. If you google create_resources you should find some examples.
Haven't googled it yet. But it seems a bit more complicated than what
I want. I just want to read the .pub file, grab the type and key, then
use that to create an ssh_authorized_key. That way, when someone adds
or changes their .pub file, it's as simple as uploading the pub file
to the puppetmaster and we're done. Thus avoiding potential mistakes
that could occur if I (or they) formatted the key into json or yaml.
I would think I could do something like that with Ruby. But I'm not
sure how to integrate that into my module...
--David Reagan
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Puppet Users" group.
> To unsubscribe from this topic, visit
>
https://groups.google.com/d/topic/puppet-users/YG0LpyzkzUo/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
>
puppet-users...@googlegroups.com.
> To post to this group, send email to
puppet...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>