Hi Felix, thanks for your response.
On 02/17/2011 10:01 AM, Felix Frank wrote: [...] > The whole apprach isn't especially sound. Is your "user pool" realized > using virtual resources? No, I created this pool by using some simple resource definitions based on the ssh_authorized_key function. > You should have a define as follows: > > define pooled_user($realname="anonymous") { > user { "$name": description => $realname, ... } > # insert code here to make sure ~/.ssh/ exists etc. > ssh_authorized_key { "jim@uniqe.email_for_$name": > key => YOUR_KEY_HERE, > ... > } > } I think I didn't got it yet but just to stay with your example I'm using the following definition: ------------------------------------------------------ [...] define pooled_user($realname="anonymous") { user { "$name": description => $realname, ... } # insert code here to make sure ~/.ssh/ exists etc. ssh_authorized_key { "jim@uniqe.email_for_$name": key => "KEY-PLACEHOLDER" } } [...] ------------------------------------------------------ When using the realize statement I don't know which naming attribute to use? The "key =>" contains a template or even the PEM encoded key of user "jim" but except it's resource name "jim@uniqe.email_for_$name" there is no naming attribute for this resource. So of course puppet throws an error when using the following definition because virtual resource "jim" cannot be found. ------------------------------------------------------ [...] realize(pooled_user[jim]) [...] ------------------------------------------------------ I have read about virtual resources within the documentation under http://docs.puppetlabs.com/guides/virtual_resources.html but obviously I don't know how to handle them. I've just started learning how to use puppet a few days ago, so it would be great if you could give me some additional hints on how to make it through all this. [...] Jan -- 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.