Hi, 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 ? Thanks mukulm -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Dan White
2012-Feb-09 14:15 UTC
Re: [Puppet Users] Cache for the local system while offline
It sounds like you are describing a machine that can flip between running puppet masterless and running it with an available puppetmaster. Is that an accurate observation ? “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) ----- mukulm <smilemukul2005@gmail.com> wrote:> > Hi, > > 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 ? > > Thanks > mukulm > > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Daniel Pittman
2012-Feb-09 21:09 UTC
Re: [Puppet Users] Cache for the local system while offline
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 -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Khoury Brazil
2012-Feb-16 01:26 UTC
Re: [Puppet Users] Cache for the local system while offline
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 does not occur if the host is connected and able to communicate with the puppet master. The only class currently applied uses content => templates to create all of the files on the client, so no ''source'' file retrieval from the puppet master. I''ve run the agent on the client in debug mode but the output doesn''t seem to add any clarity. Pluginsync is enabled in the agent''s puppet.conf, but there are currently no facts being synced to the client. The hosts file contains entries for the puppet server. When I remove every class and the pluginsync configuration from the client I get the same behavior. When I connect the client to an external network the end result is the same but instead of ''no route to host'' I get ''operation timed out''. Everything I''ve read indicates that puppet should be able run offline, making it useful for laptops so I''m beginning to wonder if there''s something I''ve missed. This is the output from an offline debug run: macbookproagent:/ admin$ sudo puppet agent -t --debug debug: Failed to load library ''shadow'' for feature ''libshadow'' debug: Failed to load library ''ldap'' for feature ''ldap'' debug: Puppet::Type::User::ProviderLdap: feature ldap is missing debug: Puppet::Type::User::ProviderPw: file pw does not exist debug: Puppet::Type::User::ProviderUser_role_add: file rolemod does not exist debug: Puppet::Type::User::ProviderUseradd: file chage does not exist debug: Puppet::Type::User::ProviderDirectoryservice: Executing ''/usr/bin/dscl -plist . -list /Users'' debug: Failed to load library ''selinux'' for feature ''selinux'' debug: Puppet::Type::File::ProviderMicrosoft_windows: feature microsoft_windows is missing debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet] debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/private]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/state/graphs]: Autorequiring File[/var/lib/puppet/state] debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/private_keys/macbookproagent.domain.local.pem]: Autorequiring File[/var/lib/puppet/ssl/private_keys] debug: /File[/var/lib/puppet/ssl/certs/macbookproagent.domain.local.pem]: Autorequiring File[/var/lib/puppet/ssl/certs] debug: /File[/var/lib/puppet/client_data]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/state/classes.txt]: Autorequiring File[/var/lib/puppet/state] debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring File[/var/lib/puppet/ssl/certs] debug: /File[/var/lib/puppet/ssl/public_keys/macbookproagent.domain.local.pem]: Autorequiring File[/var/lib/puppet/ssl/public_keys] debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/client_yaml]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/state/state.yaml]: Autorequiring File[/var/lib/puppet/state] debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/namespaceauth.conf]: Autorequiring File[/etc/puppet] debug: /File[/var/lib/puppet/clientbucket]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring File[/var/lib/puppet/ssl] debug: Finishing transaction 2166552920 debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring File[/var/lib/puppet/ssl/certs] debug: /File[/var/lib/puppet/ssl/private_keys/macbookproagent.domain.local.pem]: Autorequiring File[/var/lib/puppet/ssl/private_keys] debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/etc/puppet/namespaceauth.conf]: Autorequiring File[/etc/puppet] debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/certs/macbookproagent.domain.local.pem]: Autorequiring File[/var/lib/puppet/ssl/certs] debug: /File[/var/lib/puppet/ssl/public_keys/macbookproagent.domain.local.pem]: Autorequiring File[/var/lib/puppet/ssl/public_keys] debug: /File[/var/lib/puppet/ssl/private]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] debug: Finishing transaction 2164555400 debug: Using cached certificate for ca debug: Using cached certificate for macbookproagent.domain.local debug: Finishing transaction 2164121280 debug: Loaded state in 0.00 seconds info: Retrieving plugin debug: Using cached certificate for ca debug: Using cached certificate for macbookproagent.domain.local debug: Using cached certificate_revocation_list for ca debug: file_metadata supports formats: b64_zlib_yaml marshal pson raw yaml; using pson err: /File[/var/lib/puppet/lib]: Failed to generate additional resources using ''eval_generate'': No route to host - connect(2) debug: file_metadata supports formats: b64_zlib_yaml marshal pson raw yaml; using pson err: /File[/var/lib/puppet/lib]: Could not evaluate: No route to host - connect(2) Could not retrieve file metadata for puppet://puppet/plugins: No route to host - connect(2) debug: Finishing transaction 2163999100 Could not find a default route. Using first non-loopback interface Timed out seeking value for ipaddress Could not find a default route. Using first non-loopback interface Timed out seeking value for ipaddress debug: catalog supports formats: b64_zlib_yaml dot marshal pson raw yaml; using pson err: Could not retrieve catalog from remote server: No route to host - connect(2) warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run debug: Using cached certificate for ca debug: Using cached certificate for macbookproagent.domain.local debug: Using cached certificate_revocation_list for ca debug: Value of ''preferred_serialization_format'' (pson) is invalid for report, using default (marshal) debug: report supports formats: b64_zlib_yaml marshal raw yaml; using marshal err: Could not send report: No route to host - connect(2) -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Daniel Pittman
2012-Feb-16 01:51 UTC
Re: [Puppet Users] Cache for the local system while offline
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 --debugOne 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 -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Khoury Brazil
2012-Feb-16 03:05 UTC
Re: [Puppet Users] Cache for the local system while offline
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. :) -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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 how cache cache can 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 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#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 > >> 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. :)-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Khoury Brazil
2012-Feb-18 20:49 UTC
Re: [Puppet Users] Cache for the local system while offline
On Wed, Feb 15, 2012 at 7:05 PM, Khoury Brazil <khoury.brazil@gmail.com> wrote:> I guess I *was* missing something (something very obvious...). Thanks > for the help, that was indeed the issue. :)Since that''s out of the way, how can I control catalog expiration on specific puppet agents? I''m getting these errors if a client has been offline for a few days: Not using expired catalog for <hostname> from cache; expired at <date> Since these clients are laptops they can go for a week or two (and in rare cases longer) without connecting back to the network that the puppet master is on. Would altering catalog expiration affect online agents as well? Thanks again, Khoury -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Khoury Brazil
2012-Feb-19 05:44 UTC
Re: [Puppet Users] Cache for the local system while offline
On Sat, Feb 18, 2012 at 12:49 PM, Khoury Brazil <khoury.brazil@gmail.com> wrote:> Since that''s out of the way, how can I control catalog expiration on > specific puppet agents? I''m getting these errors if a client has been > offline for a few days: > > Not using expired catalog for <hostname> from cache; expired at <date> > > Since these clients are laptops they can go for a week or two (and in > rare cases longer) without connecting back to the network that the > puppet master is on. > > Would altering catalog expiration affect online agents as well? > > Thanks again, > KhouryChanging the date on the ''expiration'' portion of the client''s catalog yaml file resulted in puppet using the cached catalog. I''ve done some digging and can''t seem to find any configuration parameters that control that. Some googling indicates that changing the runinterval might affect it, but I want to continue applying puppet every 30-60 minutes on my agents. I need offline clients to apply a catalog while offline, regardless of the age of the catalog, but I really want to avoid a kludged together solution. -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
I am not able to cache the 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. :)-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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. :)-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hi, Can anyone assist how cache issue can be solved ? Thanks On Feb 24, 8:04 pm, mukulm <smilemukul2...@gmail.com> wrote:> 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. :)-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.