configi.old icon indicating copy to clipboard operation
configi.old copied to clipboard

apt repo module

Open josephholsten opened this issue 8 years ago • 4 comments

Need the ability to add a repo and specify a key

josephholsten avatar Sep 21 '17 15:09 josephholsten

Sorry just got back from vacation.

I may have time this weekend to add this feature. Regards.

tongson avatar Oct 06 '17 05:10 tongson

Configi could use add-apt-repository or do it by itself.

Still trying to figure out the best way.

tongson avatar Oct 09 '17 05:10 tongson

Alternative impls: Chef's apt_repository: https://github.com/chef/chef/blob/master/lib/chef/provider/apt_repository.rb Puppet's apt::source: https://github.com/puppetlabs/puppetlabs-apt/blob/master/manifests/source.pp Puppet's apt::key: https://github.com/puppetlabs/puppetlabs-apt/blob/master/manifests/key.pp Puppet's apt::ppa: https://github.com/puppetlabs/puppetlabs-apt/blob/master/manifests/ppa.pp

josephholsten avatar Oct 09 '17 23:10 josephholsten

Thanks. Added ppa module. Just used add-apt-repository like in Puppet apt::ppa.

Example: https://github.com/Configi/configi/blob/master/test/ppa_present.lua

The update parameter determines if an apt-get update is run after adding the repository. By default it does not run.

Tested this in Ubuntu Xenial.

tongson avatar Oct 11 '17 09:10 tongson