Using apt cookbook to add PPA

On Thursday, June 27, 2013 at 17:44, Mark H. Nichols wrote:

Instead of this line:

apt_repository "#{node['subversion']['subversion_ppa']}" do

Give your resource a filesystem-friendly name, like

apt_repository “subversion-ppa” do
...

The provider uses the “name” attribute for the filename of the PPA .list file, so in this case it will create /etc/apt/sources.list.d/subversion-ppa.list.

  • cassiano