On Feb 10, 2011, at 8:40 PM, Dan Bode <[email protected]> wrote:

> Hi devs,
>
> Can someone please explain the exact difference between an indirector's 
> terminus and a cache (an example illustrating the differences would be ideal)

First, they both actually use the same code - in one case you could
configure yaml as the terminus but in another as the cache.  So it's
entirely about configuration, not code.

Caches are optional, terminuses are not.

Caches are a big-ass hack, terminuses are not.

If a cache is configured:

'find' will always look there first

'find' will look in the terminus on a cache miss and save the result
to the cache

'save' will save to both

'destroy' will remove from both

That's basically it.

What's weird is how we use it.  We often want to downloa something
from the server and store it locally, or collect something (e.g.,
facts) and send them to the server.  In that case, we use 'find' and
ignore the cache, so we always retrieve from the terminus and save a
copy to the cache.

It would make far more sense to retrieve, reconfigure, then save, but
you learn all the time, right? :)

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to