Manage Debian / Ubuntu source.list files under /etc/apt/sources.list.d/ using a puppet type
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Deprecated - 2015/11/19

This Puppet type was one of my earlier public releases and while it does still work I'd highly recommend using instead.

I'd like to say thank you to all the people that have sent me nice emails about this chunk of code over the years.

Puppet APT Source.list type

Manage Debian / Ubuntu source.list files under /etc/apt/sources.list.d


aptsourced { 'backports':
  uri          => '',
  distribution => $lsbdistcodename,
  components   => [ 'main', 'contrib' ],

aptsourced { 'internalrepo.list':
  ensure       => 'present',   # optional
  repotype     => 'deb-src',
  uri          => 'http://localhost/debian',
  distribution => $::lsbdistcodename,
  components   => [ 'main', 'nonfree' ],

Copyright - Dean Wilson

License: GPLv2