[chef] Re: Re: Re: Re: Re: Re: Recipe application does not work because chef_envronment is not defined


Chronological Thread 
  • From: "Jesus M. Movilla" < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Recipe application does not work because chef_envronment is not defined
  • Date: Wed, 11 Apr 2012 14:30:17 +0200

Andrea,

We keep ong going on :-)

Now there is a problem when installing  curl=7.19.5-1ubuntu2  which is specified in the java_app.json in "packages". What is this packe for?, Can it be removed from the data_bag?. The OS of the node is Ubuntu 10.10

Regards!

Generated at Wed Apr 11 14:27:24 +0200 2012
Chef::Exceptions::Exec: package[curl] (application::java_webapp line 32) had an error: Chef::Exceptions::Exec: apt-get -q -y install curl=7.19.5-1ubuntu2 returned 100, expected 0
/usr/lib/ruby/vendor_ruby/chef/mixin/command.rb:127:in `handle_command_failures'
/usr/lib/ruby/vendor_ruby/chef/mixin/command.rb:74:in `run_command'
/usr/lib/ruby/vendor_ruby/chef/mixin/command.rb:142:in `run_command_with_systems_locale'
/usr/lib/ruby/vendor_ruby/chef/provider/package/apt.rb:92:in `install_package'
/usr/lib/ruby/vendor_ruby/chef/provider/package.rb:60:in `action_install'
/usr/lib/ruby/vendor_ruby/chef/resource.rb:440:in `send'
/usr/lib/ruby/vendor_ruby/chef/resource.rb:440:in `run_action'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:45:in `run_action'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:81:in `converge'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:81:in `each'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:81:in `converge'
/usr/lib/ruby/vendor_ruby/chef/resource_collection.rb:94:in `execute_each_resource'
/usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:116:in `call'
/usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:85:in `step'
/usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/usr/lib/ruby/vendor_ruby/chef/resource_collection.rb:92:in `execute_each_resource'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:76:in `converge'
/usr/lib/ruby/vendor_ruby/chef/client.rb:312:in `converge'
/usr/lib/ruby/vendor_ruby/chef/client.rb:160:in `run'
/usr/lib/ruby/vendor_ruby/chef/application/client.rb:239:in `run_application'
/usr/lib/ruby/vendor_ruby/chef/application/client.rb:229:in `loop'
/usr/lib/ruby/vendor_ruby/chef/application/client.rb:229:in `run_application'
/usr/lib/ruby/vendor_ruby/chef/application.rb:67:in `run'
/usr/bin/chef-client:25

On Wed, Apr 11, 2012 at 12:40 PM, Andrea Campi < "> > wrote:


On Wed, Apr 11, 2012 at 11:49 AM, Jesus M. Movilla < " target="_blank"> > wrote:
Andrea,

The last problem has been solved. It was a problem of pointing at "lucid-0.10" repo instead of "lucid". Thaks a lot !

One question about application cookbok. Where is the war to be installed defined?.

I mean, I need to tell in some place the name of the war, the location....

You should have an entry in your data bag like this:

"war": {
  "_default": {
    "checksum": "SHA1 of the war file"
  },
  "production": {
    "checksum": "SHA1 of the war file"
  }
}





Archive powered by MHonArc 2.6.16.

§