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


Chronological Thread 
  • From: Ringo De Smet < >
  • To:
  • Subject: [chef] Re: Re: Re: How to write the cookbook for third party ubuntu ppa?
  • Date: Tue, 28 Aug 2012 10:47:09 +0200

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.

§