Version information
This version is compatible with:
- Fedora, , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'cesnet-autoupdate', '1.0.3'
Learn more about managing modules with a PuppetfileDocumentation
autoupdate
Table of Contents
- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with autoupdate
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- 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.
- repository: https://github.com/MetaCenterCloudPuppet/cesnet-autoupdate
- email: František Dvořák <valtri@civ.zcu.cz>
Dependencies
- puppetlabs/stdlib (>= 1.0.0 < 5.0.0)
- aco/yum_autoupdate (>= 0.6.1 <= 1.0.0)
The MIT License (MIT) Copyright (c) 2015-2020 CESNET Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.