All - I am trying to re-write a recipe to use the apt_repository resource to add a PPA on Ubuntu so that I can install a newer version of Subversion. Originally I had this code in my recipe:
Brute-force, but effective. Now I'd like to switch to using apt_repository, like so: # Use apt_repository cookbook to add PPA for Subversion 1.7 apt_repository "#{node['subversion']['subversion_ppa']}" do uri node['subversion']['subversion_ppa'] distribution node['subversion']['ubuntu_version'] components ["main"] # keyserver "keyserver.ubuntu.com" # key "29E526FC" action :add end # apt-get install subversion package "subversion" do action :install end Where these attributes: default['subversion']['subversion_ppa'] = "http://ppa.launchpad.net/dominik-stadler/subversion-1.7/ubuntu" default['subversion']['ubuntu_version'] = "precise" When I run `vagrant up` I get the following error:
I've tried specifying the PPA address like this: ppa:dominik-stadler/subversion-1.7, with a similar unsuccessful result. I hate to revert to the brute-force code I had before. What am I missing with apt_repository? `/etc/apt/sources.list` is on the VM, so I'm at a loss as to what "enclosing directory" is missing. Thanks, Mark |
Archive powered by MHonArc 2.6.16.