####Table of Contents
- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with apticron
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
##Overview
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.
##Setup
- 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
To install apticron with it's most minimal config:
class { '::apticron':
mail_to => '[email protected]'
}
This will configure apticron to send reports daily to [email protected].
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 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.
##Limitations
This module has been tested against Puppet 3.1 and higher.
The module has been tested on:
- Ubuntu 12.04
##Development
Pull requests welcome.