Paul, Thanks for the tip regarding approaching the problem from a more puppet-like declarative stance. I'm not really sure that it's possible here, besides making a custom resource type as you mention.
The main hurdle that I see with any solution is that fundamentally generate() / file() don't behave according to the normal dependence rules that the rest of Puppet uses. For instance, this would work perfectly fine: @@ssh_authorized_key { "$n...@$domain": source => "puppet://puppet/ssh/id_rsa.pub", requires => User["$name"], } but attempting to jerry-rig the same behavior by reading in an arbitrary file on the puppetmaster system will not work (without my kluge approach). So, I guess barring a change in puppet to only fetch function results when that resource is actually to be created (versus when it is to be parsed), there's no alternative. -- Simon --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---