On May 19, 2009, at 3:18 AM, Peter Meier wrote:

>
> Hi
>
>> 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.
>
> if you're fine with creating the keys on the master you could write a
> function which provides you the content.
>
> Functions are always evaluated on the master only. The function could
> even create the ssh keys if they're not yet on the master.


As Peter indicates, you need to see the separation between client and  
server - you want to create the keys on the server and then read them  
in, both of which should use functions, not resources.

Then you feed the keys to a resource, which knows how to deploy them  
on the client.

-- 
To be positive: To be mistaken at the top of one's voice.
     -- Ambrose Bierce
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to