[chef] Re: How to write the cookbook for third party ubuntu ppa?


Chronological Thread 
  • From: Kevin Nuckolls < >
  • To:
  • Subject: [chef] Re: How to write the cookbook for third party ubuntu ppa?
  • Date: Mon, 20 Aug 2012 14:32:36 -0500

The URL you're looking for is the full one to the actual ppa that gets dropped in sources.conf.

I looked it up here for your case. Click on the technical details part.
https://launchpad.net/~brightbox/+archive/ruby-ng

http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu

Hope that helps.
-Kevin

On Mon, Aug 20, 2012 at 2:09 PM, Sachin Sagar Rai < " target="_blank"> > wrote:
Ohai!

I'm trying to write this ppa to install ruby 1.9.3.p-294 from the brightbox ppa at:

ppa:brightbox/ruby-ng

with both way, LWRP and template/execute resource one, neither works.
When I run from the terminal on my ec2 server, it gets installed graciously.
But why the chef-recipe way blows up every time.


# LWRP way
include_recipe "apt"
apt_repository "brightbox-ruby-ng" do
  uri 'ppa:brightbox/ruby-ng'
  distribution node['lsb']['codename']
  components ["main"]
  keyserver "keyserver.ubuntu.com"
  key "C300EE8C"
end
package "ruby" do
  action :install
end

# Template/Execute resource way
template "/etc/apt/sources.list.d/brightbox-ruby-ng-source.list" do
  source "brightbox-ruby-ng-source.list.erb"
  notifies :run, resources(:execute => "apt-get update"), :immediately
end

package "ruby" do
  action :install
end

package "rubygems" do
  action :install
end
# And this is the content of the template file:
deb ppa:brightbox/ruby-ng precise main


Either way shows the same error:

  


-------------------------------------------
@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.tumblr.com
Sent with Sparrow





Archive powered by MHonArc 2.6.16.

§