simple module to install and configure apt-cacher-ng

Frank Van Damme



1,031 latest version

3.0 quality score

Version information

  • 0.1.1 (latest)
  • 0.1.0
released Apr 22nd 2020
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
  • Puppet >= 4.10.0 < 7.0.0
  • Debian

Start using this module


frankvandamme/apt_cacher_ng — version 0.1.1 Apr 22nd 2020


Table of Contents

  1. Description
  2. Usage - Configuration options and additional functionality
  3. Reference - An under-the-hood peek at what the module is doing and how
  4. Limitations - OS compatibility, etc.


This module installs apt-cacher-ng by distribution package. It also creates the cache directory /var/cache/apt-cacher-ng and the apt-cacher-ng user.

What's the value over just using a package resource somewhere? Well, since we manage the cache directory, it gives you the opportunity to set up your own logic around using a separate partition for your cached files.


The File resource is defined in this module, the Mount is the thing you yourself could define outside this module. This works rather well with the puppetlabs-lvm module (tested v. 0.9.0).

Also, there is a hiera lookup in there for apt::proxy since that is an obvious thing to have in your apt configuration (when running the Puppetlabs apt module at least), in which case, the package is installed before the proxy is configured in apt, which would create an awkward chicken and egg problem.


include apt_cacher_ng


One main class, one parameter:

  • passthroughpattern: (optional) the one configuration parameter in apt-cacher-ng everyone seems to need at some point.


Many! This is a really simple module that just creates a directory, a user, and installs a package with minimal configuration.