Sunil,

I read the thread.

The way Puppet works, it's going to compile a specific catalog for the
host making a requests with essentially a blank slate every time.

You could do something like extend Ohad's example and add a global
variable to the Ruby runtime that gets assigned the first time it is
requested instead of using a file to store the state.
(Of course that solution creates it's own potential problems.)

The only way the data will be available is through the custom
function, but the logic can be such that it just returns the value
once it has been computed.

Another way to share information between hosts is exporting and
collecting resources.

Do you have an explicit use case? If we know more about the problem
you are trying to solve, we might have better solutions.

Regards,
Andrew Shafer
Reductive Labs

On Mon, Oct 12, 2009 at 4:31 AM, Sunil_mlec <sunilm...@gmail.com> wrote:
>
> Hi all,
> I am trying to cache data, which should be available to different
> puppet clients and so far I am not successful.  The cached data should
> reside in a variable and not in a flat file.  When the first
> puppetclient connects to the puppetmaster, then the puppetmaster
> generates the data dynamically and stores in a variable.  Then the
> data in that variable should be available to different puppet clients
> without the need for re-generating the data.  Could you please help me
> with it.  An example would be great.
>
> I posted the question in puppet-dev group and heres the link.  The
> final conclusion was that
> " simply provide the data with an external node tool. People on puppet-
> users might be able to help you on that. "
>
> The complete link for the thread :
> http://groups.google.com/group/puppet-dev/browse_thread/thread/4df9df7d7ef7e4c/6cd926a26fa4e9e8#6cd926a26fa4e9e8
>
> Thanks,
> Sunil.
>
> >
>

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