- From: Haselwanter Edmund <
>
- To:
- Subject: [chef] Re: Re: sun java install apt-get update
- Date: Thu, 28 Apr 2011 19:26:47 +0200
On 28.04.2011, at 17:44, Daniel DeLeo wrote:
On Thursday, April 28, 2011 at 7:21 AM, Haselwanter Edmund wrote:
Hi *,
What a difference a day made :-(
Yesterday i finished a chef config which worked well. Running it today i get caught by external dependecies:
[Thu, 28 Apr 2011 13:50:17 +0000] INFO: Setting mode to 644 for file[/etc/apt/sources.list.d/ubuntu-partner-source.list] [Thu, 28 Apr 2011 13:50:38 +0000] ERROR: apt_repository[ubuntu-partner] (/var/chef-solo/cookbooks/java/recipes/sun.rb:32:in `from_file') had an error: apt-get update returned 100, expected 0 /usr/lib/ruby/gems/1.8/gems//chef-0.9.16/bin/../lib/chef/mixin/command.rb:184:in `handle_command_failures' /usr/lib/ruby/gems/1.8/gems/chef-0.9.16/bin/../lib/chef/mixin/command.rb:131:in `run_command' /usr/lib/ruby/gems/1.8/gems/chef-0.9.16/bin/../lib/chef/provider/execute.rb:49:in `action_run' /usr/lib/ruby/gems/1.8/gems/chef-0.9.16/bin/../lib/chef/resource.rb:395:in `send' /usr/lib/ruby/gems/1.8/gems/chef-0.9.16/bin/../lib/chef/resource.rb:395:in `run_action' /var/chef-solo/cookbooks/apt/providers/repository.rb:59:in `class_from_file' /usr/lib/ruby/gems/1.8/gems/chef-0.9.16/bin/../lib/chef/provider.rb:104:in `instance_eval' /usr/lib/ruby/gems/1.8/gems/chef-0.9.16/bin/../lib/chef/provider.rb:104:in `action_add'
so I searched the mailing list and found there is a apt recipe with a cache / cache-client config
so is it possible to pre-load apt with external apt_repository information and share this on a client run?
what would it take? A instance with apt::cache and a recipe which does add this repos?
I haven't used the apt cacher yet, but does running apt-get update resolve the problem? Alternatively, can you run with -l debug to get the explanation of the error?
it seems they did a update on the ubuntu partner apt_repo. running it manually on the commandline worked without a problem.
so what to do about such a problem? running against my own mirror of this partner repo? I though a step in between would be running against a cached local apt which i can update with cron. but that would require to add all needed repos outside a chef run?
|
Archive powered by MHonArc 2.6.16.