Hi all, I would like to create a configuration along the lines of
complex_user { "joe": uid => 42, sshkeys => { "key1-comment" => { key => "...", ... }, "key2-comment" => { key => "...", ...} } ... } That is, a definition that will create a user and several ssh_authorized_keys belonging to him/her, among other things. The idea is that such a definition makes it easier to keep users and keys together, not having to repeat the user name in the key definition, being able to enable/disable both together etc. My problem is that I cannot figure out how to get the ssh_authorized_keys to work from the definition of complex_user - more precisely, how to pass the "user" into it. Here's what I tried: define complex_user($uid, $sshkeys) { /* ... create user with $name ... */ create_resources("keys_for", $sshkeys) } define keys_for($key) { ... } In keys_for, $key is the "key" value from the hash and $name is the comment from above, but I can no longer access complex_user's $name. Any ideas how to get this working (or why not to do it at all)? Thanks! -mp. -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.