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

Khoury Brazil
Thu, 16 Feb 2012 03:05:07 -0000

On Wed, Feb 15, 2012 at 5:51 PM, Daniel Pittman <daniel@puppetlabs.com>
wrote:
> On Wed, Feb 15, 2012 at 17:26, Khoury Brazil
<khoury.brazil@gmail.com> wrote:
>> On Thu, Feb 9, 2012 at 1:09 PM, Daniel Pittman
<daniel@puppetlabs.com> wrote:
>>>
>>> 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.
>>
>> Unfortunately, at least in my case, when I run puppet on a client that
>> is off of the network (in this particular case its a Macbook Pro) it
>> seems that something is failing locally, causing a "warning: not
using
>> cache on failed catalog".
> […]
>> This is the output from an offline debug run:
>> macbookproagent:/ admin$ sudo puppet agent -t --debug
>
> One of the features of the `-t` or `--test` flag is that it disables
> use of the cached catalog when you can''t fetch it down.  Does it
work
> better if you don''t specify `--test`?
>
> If not, please file a bug report. :)
> --
> Daniel Pittman
> ⎋ Puppet Labs Developer – http://puppetlabs.com
> ♲ Made with 100 percent post-consumer electrons
>
> --

I guess I *was* missing something (something very obvious...). Thanks
for the help, that was indeed the issue. :)