Here's my problem. I want Varnish 3.0, but Lucid only has the 2.1 package available.
So using Chef, I need to make an install recipe that adds the varnish-cache.org repository to the apt sources and installs the varnish-3.0 package.
(I have the option of building it from source (right?), but if I do, I won't get the /etc/init.d scripts (right?)).
So I'm writing an apt_install.rb recipe which presumably adds the repository:
apt_repository "varnish-3.0" do uri "http://repo.varnish-cache.org/ubuntu/" repo_name "varnish-3.0" distribution "lucid" components ["varnish-3.0"] key "http://repo.varnish-cache.org/debian/GPG-key.txt" deb_src true action :add end
And indeed this adds a varnish-3.0-source.list in /etc/apt/sources.list.d which says:
# Created by the Chef apt_repository LWRP deb http://repo.varnish-cache.org/ubuntu/ lucid main
Then I have
package "varnish" do source "http://repo.varnish-cache.org/ubuntu/" action :install end
which proceeds to install version 2.1 on my server, not 3.0.
If I specify a "version" in the package block, I get "version not found".
What am I missing here? It must be something simple.