Skip to content
/ auter Public
forked from rackerlabs/auter

Automatic updates for RHEL, CentOS or Fedora Linux servers, with the ability to run pre/post hooks & reboot afterwards.

License

Notifications You must be signed in to change notification settings

rjmco/auter

 
 

Repository files navigation

auter

Automatic updates for RHEL, CentOS or Fedora Linux servers, with the ability to run pre/post hooks, pre-download packages & reboot after the updates.

When to use Auter?

Updates should be applied regularly to Linux systems in order to apply security and bug fixes. For some of those updates, for example the kernel, or a shared library, a system restart is required for those updates to take effect. Whether you apply those updates manually, or automatically will depend on your requirements.

Auter provides a host-based (i.e. installed on the OS) way on systems using yum/dnf (RHEL, CentOS, Fedora, Amazon Linux, etc.) of automatically applying updates and rebooting. For servers, it is often the case that updates and reboots must only happen during defined maintenance windows. Auter provides flexible scheduling to ensure updates and reboots happen when you want them to. Auter allows you to customize how updates run - you can pre-download updates in advance of the window to apply them, and you can run custom scripts before and after the updates.

Here's some cases where other options may be better:

  • I want to update nightly, and will handle reboots myself - yum-cron or dnf-automatic do exactly this
  • I want a console to manage updates to all my systems - a central management system like RHN Satellite, or perhaps updates applied via a configuration management system like Chef or Puppet. These all need some additional infrastructure, and may impose some limits on flexibility.

Enable/Disable

Adds or removes a lockfile that auter will check the presence of to see whether to do anything:

auter --enable
auter --disable

Configure

Edit /etc/auter/auter.conf. See the comments in that file for help. yum/dnf configuration should be used to configure anything affecting yum/dnf, for example packages to exclude.

Set Regular Schedule

Edit /etc/cron.d/auter. The following can have different times:

prep - Pre-download packages from yum (if downloadonly option is supported)
apply - Apply updates and reboot

Typically, you may want apply to run on one day for your UAT, and another later day for your Production servers.

Set Irregular Schedule

If the times you want this to run varies such that its not definable in a crontab, disable the cron jobs and instead create at jobs (as root):

echo '/usr/bin/auter --apply' | at 1am Feb 17
echo '/usr/bin/auter --apply' | at 4am Mar 20
echo '/usr/bin/auter --apply' | at 2am Apr 19

Run at boot time

To apply updates on every boot, set a cron job in /etc/cron.d/auter:

@reboot    root /usr/bin/auter --apply

Manual Run

You'll usually want everything to run via cron, but you can also run auter manually should you wish to, for example for debugging:

auter --prep
auter --apply

yum repo & binaries

You can find rpm files attached to each auter release in github.

For a yum repo with pre-built binaries for each supported distribution, see our copr page:

About

Automatic updates for RHEL, CentOS or Fedora Linux servers, with the ability to run pre/post hooks & reboot afterwards.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 60.1%
  • Roff 36.1%
  • Makefile 3.8%