What is the best way to add ppa in chef?

I followed documentation
and did something like this

apt_repository 'ruby-ng' do
   uri         'brightbox/ruby-ng'
apt_update 'update packages' do
  action :update

but this thrown me error.
I don’t want to brute force to add ppa.
how to write sudo apt-add-repository -y ppa:brightbox/ruby-ng in chef?

Well, the docs of the apt cookbook state that the uri should start with “ppa:”…

1 Like

Yup, thanks Joerg.

And if you have an error, it helps to actually paste it into the post so that we can help you better. Saying “it errored” or “doesn’t work” doesn’t help without additional details.