Version information
This version is compatible with:
Start using this module
Add this module to your Puppetfile:
mod 'gdsoperations-unattended_reboot', '0.3.0'
Learn more about managing modules with a PuppetfileDocumentation
Unattended reboot
Puppet module to coordinate unattended reboots for Ubuntu servers.
Used to reboot servers one-by-one during a specified window to allow security updates to take effect, e.g. kernel or libssl upgrades.
Relies on update-notifier-common to determine if a reboot is necessary.
You can specify a directory containing scripts that determine if it's safe to
invoke a reboot, e.g. query your monitoring service, by setting the
check_scripts_directory
parameter.
You can also specify a directory of scripts to execute before the reboot
occurs, e.g. remove the node from a load balancer pool, by setting the
pre_reboot_scripts_directory
parameter.
Requirements
Needs etcd for the mutual exclusion lock.You can find the source for our
etcd
Ubuntu package in our
alphagov/packager
repository.
Uses locksmithctl to add/remove the lock. You can find the source for our
locksmithctl
Ubuntu package in our
alphagov/packager
repository.
License
See LICENSE file.
0.3.0 (2017-05-17)
- Feature: use cron.d for cronjobs rather than default crontab. This allows us to set specific MAILTO parameters to the cron without affecting other jobs
- Bug fix: puppet-lint errors as #{linenumber} is deprecated
- Bug fix: puppet-lint fails on "arrow_on_right_operand_line"
0.2.0 (2016-02-25)
- Bug fix: Ensure run-parts will execute scripts with file extensions
0.1.0 (2015-06-18)
- Initial release
Dependencies
- puppetlabs-stdlib (>= 3.0.0 <5.0.0)
The MIT License (MIT) Copyright (c) 2015 Crown Copyright (Government Digital Service) 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.