Forge Home

autoupdate

Enable autoupdates

11,659 downloads

2,273 latest version

4.0 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

  • 1.0.3 (latest)
  • 1.0.2
  • 1.0.1
  • 1.0.0
  • 0.1.0
released Feb 25th 2020
This version is compatible with:
  • , , Fedora, , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'cesnet-autoupdate', '1.0.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add cesnet-autoupdate
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install cesnet-autoupdate --version 1.0.3

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

cesnet/autoupdate — version 1.0.3 Feb 25th 2020

autoupdate

Build Status

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 autoupdate
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

This module sets up automatic updates in the system. It is easy to use module with one scheduled job and email support.

This module offers unified simplified way to handle automatic updates in Debian-like and RedHat-like systems.

On Debian cron-apt tool is used.

On RedHat yum-autoupdate tool is used (using aco-yum_autoupdate puppet module).

Debian

  • cron-apt package installed
  • /etc/cron-apt/config
  • */etc/cron-apt/action.d/**
  • /etc/cron.d/cron-apt - removed
  • crontab

RedHat

See https://github.com/antoineco/aco-yum_autoupdate#setup.

Example: default parameters without email notification

include autoupdate

Updates at random time 5:00 - 6:00 each day.

Example: some parameters and email

class { 'autoupdate':
  email      => 'email@example.com',
  hour       => 7,
  minute     => 0,
  randomwait => 1200,
}

Update at random time 7:00 - 7:20 each day and send email notification, if someting was updated.

####email Email to sent notifications. Default is undef.

####randomwait Random time to wait before update in seconds. Default is to leave it to the autoupdate tools (1 hour for cron-apt and yum-autoupdate).

####update Update type. Default is 'default'.

  • cron-apt: default, dist
  • yum_autoupdate: default, security, minimal, ...

Unknown types translates to default.

####hour ####minute ####month ####monthday ####weekday ####special Parameters for cron job. Beware the defaults are *!

RedHat-like and Debian-like systems are supported.