Re: [Puppet Users] Cache for the local system while offline

Daniel Pittman
Thu, 09 Feb 2012 21:09:56 -0000

On Thu, Feb 9, 2012 at 06:12, mukulm <smilemukul2005@gmail.com>
wrote:
>
> I want to cache the updates for the users system received from the
> server so that the users can get the updates
> from the local system cache while offline.
>
> Any idea how can server updates be stored on the users system while
> offline  ?

You likely want `--usecacheonfailure`, or the equivalent setting in
`puppet.conf`:

http://docs.puppetlabs.com/references/stable/configuration.html#usecacheonfailure

Whether to use the cached configuration when the remote configuration
will not compile. This option is useful for testing new
configurations, where you want to fix the broken configuration rather
than reverting to a known-good one.

That should also apply when you can''t communicate with the master.

--
Daniel Pittman
⎋ Puppet Labs Developer – http://puppetlabs.com
♲ Made with 100 percent post-consumer electrons