Forge Home

apt

Provides an interface for managing Apt source, key, and definitions with Puppet

33,843,286 downloads

40,349 latest version

4.7 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 9.4.0 (latest)
  • 9.3.0
  • 9.2.0
  • 9.1.0
  • 9.0.2
  • 9.0.1
  • 9.0.0
  • 8.5.0
  • 8.4.1
  • 8.4.0
  • 8.3.0
  • 8.2.0
  • 8.1.0
  • 8.0.2
  • 8.0.1
  • 8.0.0
  • 7.7.1
  • 7.7.0
  • 7.6.0
  • 7.5.0
  • 7.4.2
  • 7.4.1
  • 7.4.0
  • 7.3.0
  • 7.2.0
  • 7.1.0
  • 7.0.1
  • 7.0.0
  • 6.3.0
  • 6.2.1
  • 6.2.0
  • 6.1.1
  • 6.1.0
  • 6.0.0
  • 5.0.1
  • 5.0.0
  • 4.5.1
  • 4.5.0
  • 4.4.1
  • 4.4.0
  • 4.3.0
  • 4.2.0
  • 4.1.0
  • 4.0.0
  • 3.0.0
  • 2.4.0
  • 2.3.0
  • 2.2.2
  • 2.2.1
  • 2.2.0
  • 2.1.1
  • 2.1.0
  • 2.0.1
  • 2.0.0
  • 1.8.0
  • 1.7.0
  • 1.6.0
  • 1.5.2
  • 1.5.1 (deleted)
  • 1.5.0
  • 1.4.2
  • 1.4.1 (deleted)
  • 1.4.0
  • 1.3.0
  • 1.2.0
  • 1.1.1
  • 1.1.0
  • 1.0.1
  • 1.0.0
  • 0.0.4
  • 0.0.3
  • 0.0.2 (deleted)
  • 0.0.1 (deleted)
released Feb 15th 2024
This version is compatible with:
  • Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
  • Puppet >= 7.0.0 < 9.0.0
  • ,
Tasks:
  • apt

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'puppetlabs-apt', '9.4.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add puppetlabs-apt
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install puppetlabs-apt --version 9.4.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

puppetlabs/apt — version 9.4.0 Feb 15th 2024

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v9.4.0 - 2024-02-15

Full Changelog

Added

  • Backports: add keyring support #1162 (kenyon)
  • Support "hourly" and Integer as value for update frequency (fixes #1157) #1159 (webcompas)

Fixed

Other

v9.2.0 - 2023-12-04

Full Changelog

Added

  • Allow passing all keyring params in apt::source #1147 (kenyon)
  • Cleanup Debian 9 and Ubuntu pre-18.04 specialcases #1142 (evgeni)
  • Add support for modern keyrings #1128 (praj1001)

Fixed

  • (CAT-1483) - Enhancement of handling of apt::source's repos and release parameters #1138 (Ramesh7)
  • backports: don't hardcode an old gpg key for Ubuntu #1129 (kenyon)

v9.1.0 - 2023-06-08

Full Changelog

Changed

  • (CONT-773) Add Support for Puppet 8 / Remove Support for Puppet 6 #1101 (david22swan)

Added

Fixed

  • (MODULES-10831) key is expired if all subkeys are expired #1104 (kenyon)

v9.0.2 - 2023-03-14

Full Changelog

Fixed

v9.0.1 - 2022-12-21

Full Changelog

Fixed

v9.0.0 - 2022-08-18

Full Changelog

Changed

Added

Fixed

v8.5.0 - 2022-08-03

Full Changelog

Added

v8.4.1 - 2022-06-20

Full Changelog

Fixed

v8.4.0 - 2022-06-06

Full Changelog

Changed

Added

  • enable allow-insecure for apt::source defined types, includes new tes… #1014 (hesco)

Fixed

  • pdksync - (GH-iac-334) Remove Support for Ubuntu 14.04 #1023 (david22swan)
  • pdksync - (GH-iac-334) Remove Support for Ubuntu 16.04 #1022 (david22swan)
  • (MODULES-11301) Don't install gnupg if not needed #1020 (simondeziel)
  • Use fact() function for all os.distro.* facts #1017 (root-expert)
  • (maint) Fix resource ordering when apt-transport-https is needed #1015 (smortex)
  • Omit empty options in source.list template to fix MODULES-11174 #1013 (mpdude)
  • Replace arm64 for aarch64 in ::apt::source #1012 (mpdude)
  • Fixed gpg file for Ubuntu versions 21.04 and later. #1011 (Conzar)
  • (MODULES-10763) Remove frequency collector #1010 (LTangaF)

v8.3.0 - 2021-10-04

Full Changelog

Added

Fixed

v8.2.0 - 2021-08-25

Full Changelog

Added

Fixed

v8.1.0 - 2021-07-26

Full Changelog

Added

  • [MODULES-9695] - Add support for signed-by in source entries #991 (johanfleury)

Fixed

  • apt::source: pass the weak_ssl param to apt::key #993 (kenyon)
  • (IAC-1597) Increasing MAX_RETRY_COUNT #987 (pmcmaw)

v8.0.2 - 2021-03-29

Full Changelog

Fixed

  • (MODULES-10971) - Ensure apt::keyserver is considered when creating a default apt:source #981 (david22swan)
  • (IAC-1497) - Removal of unsupported translate dependency #979 (david22swan)

v8.0.1 - 2021-03-15

Full Changelog

Fixed

v8.0.0 - 2021-03-01

Full Changelog

Changed

  • pdksync - Remove Puppet 5 from testing and bump minimal version to 6.0.0 #969 (carabasdaniel)

v7.7.1 - 2021-02-16

Full Changelog

Fixed

v7.7.0 - 2020-12-08

Full Changelog

Added

v7.6.0 - 2020-09-15

Full Changelog

Added

  • (MODULES-10804) option to force purge source.lists file #948 (sheenaajay)

Fixed

v7.5.0 - 2020-08-13

Full Changelog

Added

Fixed

v7.4.2 - 2020-05-14

Full Changelog

Fixed

v7.4.1 - 2020-03-23

Full Changelog

Fixed

v7.4.0 - 2020-03-03

Full Changelog

Added

  • Add 'include' param to apt::backports #910 (paladox)
  • pdksync - (FM-8581) - Debian 10 added to travis and provision file refactored #902 (david22swan)

Fixed

  • MODULES-10548: make files readonly #906 (anarcat)
  • MODULES-10543: only consider lsbdistcodename for apt-transport-https #905 (anarcat)
  • MODULES-10543: remove sources.list file on purging #904 (anarcat)
  • Include apt in apt::backports #891 (zivis)

v7.3.0 - 2019-12-16

Full Changelog

Added

Fixed

  • MODULES-10063, extend apt::key to support deeplinks, this time with f… #894 (atarax)
  • MODULES-10063, extend apt::key to support deeplinks #892 (atarax)

v7.2.0 - 2019-10-29

Full Changelog

Added

Fixed

v7.1.0 - 2019-07-30

Full Changelog

Added

v7.0.1 - 2019-05-14

Full Changelog

7.0.0 - 2019-04-24

Full Changelog

Changed

Added

  • Allow weak SSL verification for apt_key #849 (tuxmea)

6.3.0 - 2019-01-22

Full Changelog

Added

  • Add support for dist-upgrade & autoremove action #832 (aboks)
  • (MODULES-8321) - Add manage_auth_conf parameter #831 (eimlav)

Fixed

  • (MODULES-8418) Fix /etc/apt/auth.conf owner changing endlessly #836 (antaflos)
  • pdksync - (FM-7655) Fix rubygems-update for ruby < 2.3 #835 (tphoney)
  • (MODULES-8326) - apt-transport-https not ensured properly #830 (eimlav)

6.2.1 - 2018-11-21

Full Changelog

Fixed

  • (MODULES-8272) - Revert "Autorequire dirmngr in apt_key types" #825 (eimlav)

6.2.0 - 2018-11-19

Full Changelog

Added

  • (MODULES-8081): add support for hkps:// protocol in apt::key #815 (simondeziel)

Fixed

  • Apt-key fixes to properly work on Debian 9 #822 (ekohl)
  • (maint) - Update Link to REFERENCE.md #811 (pmcmaw)

6.1.1 - 2018-10-02

Full Changelog

Fixed

  • Revert "(MODULES-6408) - Fix dirmngr install failing" #808 (eimlav)

6.1.0 - 2018-10-01

Full Changelog

Added

  • pdksync - (FM-7392) - Puppet 6 Testing Changes #800 (pmcmaw)
  • pdksync - (MODULES-6805) metadata.json shows support for puppet 6 #798 (tphoney)
  • (MODULES-3307) - Auto update expired keys #795 (eimlav)
  • (FM-7316) - Implementation of the i18n process #789 (david22swan)
  • Introduce an Apt::Proxy type to validate the hash #773 (ekohl)

Fixed

  • (MODULES-6408) - Fix dirmngr install failing #801 (eimlav)
  • (MODULES-1630) - Expanding source list fix to cover all needed versions #788 (david22swan)

6.0.0 - 2018-08-24

Full Changelog

Changed

Added

5.0.1 - 2018-07-30

Full Changelog

Fixed

  • (MODULES-7540) add apt-transport-https with https #775 (tphoney)

5.0.0 - 2018-07-19

Full Changelog

Changed

Added

  • (MODULES-7468) Update apt to support Ubuntu 18.04 #769 (david22swan)
  • Support managing login configurations in /etc/apt/auth.conf #752 (antaflos)

Fixed

4.5.1 - 2018-02-01

Full Changelog

4.5.0 - 2018-01-22

Full Changelog

Fixed

  • MODULES-6235 - Addressing Rubocop Errors #735 (pmcmaw)

4.4.1 - 2017-11-20

Full Changelog

Added

4.4.0 - 2017-11-15

Full Changelog

Added

Fixed

4.3.0 - 2017-10-11

Full Changelog

4.2.0 - 2017-09-26

Full Changelog

Added

  • apt_package_security_updates fact and test #703 (tphoney)
  • Allow user to modify loglevel of apt-get update Exec resource #690 (tpdownes)

Fixed

  • Switch to deb.debian.org and remove Debian 6.0 #702 (tphoney)
  • MODULES-4686: gpg keyserver import fails in Debian 9 (Stretch) #698 (deric)
  • Fixed typo in "Configuring Apt from hiera example" #693 (morremeyer)
  • Ignore subkeys in apt-key's output #665 (tiger-jmw)
  • (MODULES-4118) Set dpkg option NoLocking in apt_updates fact #640 (jocado)

4.1.0 - 2017-06-05

Full Changelog

Added

Fixed

  • Revert removal of Evolving Web's attribution in NOTICE file #678 (DavidS)

4.0.0 - 2017-04-27

Full Changelog

Fixed

  • Rebase of #668 #673 (hunner)
  • Fix architecture fact overriding unset architecture source option #672 (domcleal)

3.0.0 - 2017-04-19

Full Changelog

Added

2.4.0 - 2017-04-06

Full Changelog

Changed

Added

  • [MODULES-4224] Implement beaker-module_install_helper #652 (wilson208)
  • [MODULES-3562] Implement retry for tests which require modules to pull key from keyserver #631 (wilson208)

Fixed

  • [MODULES-4528] Replace Puppet.version.to_f with Puppet::Util::Package.versioncmp #658 (wilson208)
  • apt::key is a defined type, not a class #656 (WhatsARanjit)
  • Avoid string comparison error #635 (lkoranda)
  • Undef default for $notify_update in source.pp results in problem with Puppet 3.7.2 #628 (cpavanrun)

2.3.0 - 2016-09-20

Full Changelog

Added

Fixed

  • Fix syntax error #619 (DavidS)
  • Fixed "unless" test condition for ppa repository #613 (nicobn)
  • apt/params: Remove unused LSB facts #610 (daenney)
  • Fix regexp for $ensure params #609 (hfm)
  • Use hkps.pool.sks-keyservers.net instead of pgp.mit.edu #606 (DavidS)
  • Install software-properties-common for xenial #605 (imphil)
  • Fix version check on 16.04. #604 (tdb)
  • apt::setting expects priority to be an integer, set defaults accordingly #602 (madddi)
  • Fix STRICT_VARIABLE testing #599 (DavidS)
  • Typo: missing colon #595 (danielhoherd)
  • Make apt_updates facts use /usr/bin/apt-get. #581 (robinelfrink)

2.2.2 - 2016-02-29

Full Changelog

Added

Fixed

  • MODULES-2873 - Avoid multiple package resource declarations #588 (werekraken)
  • Handle PPA names that contain a plus character. #583 (tdb)
  • Look for correct sources.list.d file for apt::ppa #582 (imphil)
  • fix whitespace in source.list #577 (amauf)
  • Fix apt_key tempfile race condition #572 (claytono)

2.2.1 - 2015-12-04

Full Changelog

2.2.0 - 2015-09-29

Full Changelog

Added

Fixed

2.1.1 - 2015-07-27

Full Changelog

Added

  • Added additional header template for apt.conf style comments #540 (szynaka)

Fixed

2.1.0 - 2015-06-16

Full Changelog

Changed

Added

  • Added new apt_reboot_required fact, updated readme, and added unit tests #516 (dlactin)

Fixed

2.0.1 - 2015-04-28

Full Changelog

Added

Fixed

2.0.0 - 2015-04-14

Full Changelog

Added

Fixed

1.8.0 - 2015-03-17

Full Changelog

Changed

Added

Fixed

1.7.0 - 2014-10-28

Full Changelog

Added

Fixed

1.6.0 - 2014-08-13

Full Changelog

Fixed

1.5.2 - 2014-07-21

Full Changelog

1.5.1 - 2014-07-10

Full Changelog

Added

Fixed

  • MODULES-780 Don't blow up on unicode characters. #327 (adik)
  • MODULES-780 Don't blow up on unicode characters. #318 (daenney)

1.5.0 - 2014-06-05

Full Changelog

Added

Fixed

  • Fixed regex to follow APT requirements #298 (frconil)
  • unattended_upgrades: Fix matching security archive #286 (apenney)
  • Change proxy's configuration file to be consistent with other config files in apt.conf.d #283 (johanfleury)
  • unattended-upgrades: Fix origins for Squeeze. #281 (daenney)
  • Small patch to fix the spacing that makes lint fail. #279 (apenney)
  • unattended_upgrades: Fix matching security archive #278 (daenney)
  • Fix typo in ppa.pp #274 (fdrouet)
  • Use File.expand_path with require. #268 (daenney)
  • Fix fail message #248 (electrical)
  • Make apt.conf.d/proxy world readable and add a newline #209 (pabl0)
  • Added retry to update operation #193 (ianunruh)

1.4.2 - 2014-03-03

Full Changelog

Added

Fixed

  • Add back in missing fields to work around Puppet bug. #257 (apenney)
  • Port 8080 is a bad choice and bumps into puppetdb #237 (hunner)
  • Don't pass options to ppa on lucid #231 (hunner)
  • Force owner and mode on ppa files #227 (daniellawrence)
  • Update out of date Debian signing key for backports #226 (mark0n)
  • changed proxy_host default value from true to undef. fixes #211 #215 (lotherk)

1.4.1 - 2014-02-14

Full Changelog

Changed

  • Handling of release parameter and apt provider in force manifest #140 (hunner)

Added

Fixed

  • Ensure apt::ppa fails on non-Ubuntu. #208 (apenney)
  • fixed include, contained dash instead of underline. #205 (braddeicide)
  • Apt::ppa should exec with root #202 (tsuharesu)
  • Use include instead of parameterized class when no params are given. #187 (ghoneycutt)
  • add an 'ensure' parameter to apt::ppa #184 (rsrchboy)
  • apt::source templates/sources.list.erb generates invalid source line when architecture is provided. #182 (stefanvanwouw)
  • getparam() isn't available in all stdlib versions. #178 (apenney)

1.4.0 - 2013-10-15

Full Changelog

Fixed

  • This work flips from onlyif to unless (mistakenly looked at the #172 (apenney)
  • add an updates_timeout option to apt::params (PR fix) #167 (madeddie)

1.3.0 - 2013-09-17

Full Changelog

Added

Fixed

  • pass flags as string of single letter #148 (nagas)
  • Fix: parametrize apt::ppa class for beign able to pass options to apt-add-repository command #146 (oleiade)
  • ppa: fix empty environment definition in exec ressource when no proxy #145 (PierreGambarotto)

1.2.0 - 2013-07-05

Full Changelog

Added

  • Add a $key_options parameter to apt::key. #122 (strangeman)
  • Add optional architecture qualifier to apt-sources #118 (jopecko)

Fixed

  • replace aptitude with apt in apt::force #134 (spali)

1.1.1 - 2013-07-01

Full Changelog

Changed

Added

Fixed

  • Revert "Merge pull request #135 from CERIT-SC/master" #137 (hunner)
  • trim keys to 8 chars for matching with apt-key list (fix for #100) #133 (benben)

1.1.0 - 2012-12-02

Full Changelog

Fixed

1.0.1 - 2012-10-29

Full Changelog

1.0.0 - 2012-10-29

Full Changelog

Changed

  • Without puppetlabs/stdlib, you will get "err: Could not retrieve catalog... #75 (ytjohn)

Added

  • (#16070) Allow optional order parameter to apt::pin #83 (dalen)
  • Add a way to specify a timeout for the apt::force define. #79 (sathlan)

Fixed

  • remove check, if $release is empty #78 (saz)
  • «main» repository is missing from ubuntu backports. #77 (jonhattan)
  • fix scoping of $lsbdistcodename in source.pp #74 (antonlindstrom)
  • Add logoutput on_failure for all exec resources. #73 (nanliu)
  • Fix Modulefile for puppet-apt to puppetlabs-apt rename #72 (branan)

0.0.4 - 2012-06-05

Full Changelog

Fixed

  • Fix Modulefile for puppet-apt to puppetlabs-apt rename #72 (branan)
  • (#14657) Fix filename when there is a period in the PPA #60 (branan)
  • Fix style related issues in module. #57 (nanliu)
  • (#11966) apt module containment for apt_update. #55 (nanliu)

0.0.3 - 2012-05-04

Full Changelog

Added

  • (#14321) apt::pin resource support release. #53 (nanliu)
  • (#14308) Add ensure=>absent for define resource. #52 (nanliu)
  • Sync with pl ops #42 (ody)
  • Make sure we configure the proxy before doing apt-get update. #41 (tbroyer)

Fixed

  • Move Package['python-software-properties'] to apt:ppa #54 (branan)
  • (#11966) Only invoke apt-get update once. #49 (nanliu)
  • (#14138) Fix spec test for aptitude changes. #47 (nanliu)
  • (#14138) Modify apt::ppa's update-apt exec to use the ${apt::params::provider} parameter. #44 (relud)

0.0.2 - 2012-03-26

Full Changelog

Added

  • (#13125) Apt keys should be case insensitive #34 (blkperl)

Fixed

  • Convert apt::key to use anchors #32 (reidmv)

0.0.1 - 2012-03-07

Full Changelog