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

mukulm
Fri, 24 Feb 2012 15:04:25 -0000

Hi,

Please assist on the below request as I am not able to receive the
updates offline.

Thanks
mukulm


On Feb 20, 7:59 pm, mukulm <smilemukul2...@gmail.com>
wrote:
> I am not able tocachethe updates from the server as I had updated
> the nodes puppet.conf with usecacheonfailure=true or any other info
> need to be updated  ?
>
> I am getting the error messages  as,
>
> err: Could not retrieve catalog from remote server: getaddrinfo: Name
> or service not known
> err: Could not retrieve catalog; skipping run
> err: Could not send report: getaddrinfo: Name or service not known
>
> Please assist.
> Thanks
> mukulm
>
> On Feb 16, 1:29 pm, mukulm <smilemukul2...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I am too getting the same message & error as,
>
> > err: Could not retrieve catalog from remote server: getaddrinfo: Name
> > or service not known
> > err: Could not retrieve catalog; skipping run
> > err: Could not send report: getaddrinfo: Name or service not known
>
> > Can anyone assist howcachecachecan be achieve on the nodes.
>
> > Thanks
> > mukulm
>
> > On Feb 16, 8:05 am, Khoury Brazil <khoury.bra...@gmail.com>
wrote:
>
> > > On Wed, Feb 15, 2012 at 5:51 PM, Daniel Pittman
<dan...@puppetlabs.com> wrote:
> > > > On Wed, Feb 15, 2012 at 17:26, Khoury Brazil
<khoury.bra...@gmail.com> wrote:
> > > >> On Thu, Feb 9, 2012 at 1:09 PM, Daniel Pittman
<dan...@puppetlabs.com> wrote:
>
> > > >>> On Thu, Feb 9, 2012 at 06:12, mukulm
<smilemukul2...@gmail.com> wrote:
>
> > > >>> > I want tocachethe updates for the users system
received from the
> > > >>> > server so that the users can get the updates
> > > >>> > from the local systemcachewhile 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#useca...
>
> > > >>> 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
> > > >>cacheon 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. :)