Fork me on GitHub

You are here

Setting up a Debian mirror with Puppet.

I've pushed a puppet module to Github that you can use to set up your own private Debian mirror.  Go check it out on https://github.com/rgevaert/puppet-debianmirror.
To use it you should include the debianmirror class.  You can optionally set some parameters.  The module uses apt-mirror and it mirrors by default the architecture you are running.  If you want to mirror extra architectures you can define them with the architectures parameter.
class {
'debianmirror':
mirror => 'ftp.nl.debian.org',
distributions => 'stable',
architectures => ['i386'],
components => 'main contrib non-free';
}

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.