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


Chronological Thread 
  • From: Sachin Sagar Rai < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: How to write the cookbook for third party ubuntu ppa?
  • Date: Tue, 28 Aug 2012 22:16:57 +0545

Hi Ringo,
Due to many trials, couldn't get that working. So, just went the old school way with `execute ...` resource.

But I'd like to do it the LWRP way. Can you also post your `apt_repository ....` block code as well!

I'd appreciate that.

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

On Tuesday, August 28, 2012 at 2:32 PM, Ringo De Smet wrote:

Sachin,

On 21 August 2012 17:14, Sachin Sagar Rai < " target="_blank"> > wrote:
I've changed the uri as you suggested, but still it blows up:
Following is the recipe:

include_recipe "apt"

apt_repository "brightbox-ruby-ng" do
  distribution node['lsb']['codename']
  components ["main"]
  keyserver "keyserver.ubuntu.com"
  key "C300EE8C"
end


What would you do if you add a new repository to your sources list manually? Right, you would run "apt-get update".

So just after your Chef snippet of apt_repository, add this:

execute "apt-get update" do
   action :run
end

Works for me.

Ringo




Archive powered by MHonArc 2.6.16.

§