Forge Home


apticron puppet module

Stephen Hoekstra



8,884 latest version

4.5 quality score

Version information

  • 0.1.1 (latest)
released Nov 2nd 2014
This version is compatible with:
  • Ubuntu

Start using this module

Tags: apt, apticron


shoekstra/apticron — version 0.1.1 Nov 2nd 2014

Build Status Puppet Forge

####Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with apticron
  4. Usage - Configuration options and additional functionality
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module


The apticron module installs and configures apticron - a simple script which sends daily emails about pending package updates.

##Module Description

The apticron module handles installing and configuring apticron on Debian-based distributions. apticron will configure a cron job to email an administrator information about any packages on the system that have updates available, as well as a summary of changes in each package.


What apticron affects

  • Installs apticron package
  • Removes /etc/cron.d/apticron in order to manage the cron job using the puppet cron function
  • Configures /etc/apticron/apticron.conf

Beginning with apticron

To install apticron with it's most minimal config:

class { '::apticron':
  mail_to => ''

This will configure apticron to send reports daily to


The ::apticron:: class

The apticron class configures the majority of options for this module.



Boolean: defaults to false. Set to true to only output the difference of the current run compared to the last run (ie. only new upgrades since the last run). If there are no differences, no output/email will be generated. By default, apticron will output everything that needs to be upgraded.


Boolean: defaults to true. Set to false if you don't want to be notified about new versions of packages on hold in your system. The default behavior is downloading and listing them as any other package.


Boolean: defaults to false. Set to false if you don't want to be notified about packages which are not installed in your system. Yes, it's possible! There are some issues related to systems which have mixed stable/unstable sources. In these cases apt-get will consider for example that packages with "Priority:required"/"Essential: yes" in unstable but not in stable should be installed, so they will be listed in dist-upgrade output.


String: defaults to undef. Set if you want to replace the default subject used in the notification e-mails. This may help filtering/sorting client-side e-mail.


String: defaults to undef. Set if you want to replace the default sender by changing the 'From:' field used in the notification e-mails. Your default sender will be root@$fqdn.

The apticron::cron class

The apticron::cron class removes the /etc/cron.d/apticron file, replacing it with a root crontab entry using the Puppet cron function. The following parameters are configurable: minute, hour, monthday, month, weekday.


This module has been tested against Puppet 3.1 and higher.

The module has been tested on:

  • Ubuntu 12.04


Pull requests welcome. alpha