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
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
This module installs
apt-cacher-ng by distribution package. It also creates the
/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.
Mount['/var/cache/apt-cacher-ng'] -> File['/var/cache/apt-cacher-ng']
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
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.
- puppetlabs-stdlib (>= 1.0.0)