Skip to content

Configuration

Nick Rhodes edited this page Mar 24, 2019 · 4 revisions

/etc/auter/auter.conf

# Configuration file for auter

# Set a tag which will be used for files related to this configuration.
# Log files and postreboot jobs will both be named using this tag.
# IMPORTANT: This auter tag MUST BE UNIQUE on a system.
# Valid options: String with no special characters or spaces
CONFIGSET="default"

# Set whether server will reboot automatically after --apply. A warning
# message will show for logged in users 2 mins before the reboot. The
# system will only be rebooted if one or more updates were applied
# successfully, and if all of the custom pre-apply, post-apply and pre-reboot
# scripts exit with a non-zero exit code.
# Valid Options: yes/no
AUTOREBOOT="yes"

# Options to pass to the package manager (yum/dnf/apt) when the update/upgrade
# action is called. For example, this can be used to disable excludes or omit
# packages. If dnf is installed, it will be the preferred package manager.
# Valid Options: Space separated packagemanager options
PACKAGEMANAGEROPTIONS=""

# If the --downloadonly option is available then updates will be downloaded
# during --prep
# Valid Options: yes/no
PREDOWNLOADUPDATES="yes"

# Option to only install the downloaded packages. This option should be used
# when getting multiple servers to apply the same update list  (eg to keep a
# uat/staging/prod environment in sync), or when you would like to review the
# updates ahead of applying them. Not setting this option will result in auter
# installing the latest available packages at the time apply runs.
# NOTE: The PREDOWNLOADUPDATES must be set to "yes" for this to take effect.
# The directory must be owned by user and group 'root' and must not be writable
# by other.
# Valid Options: yes/no
ONLYINSTALLFROMPREP="yes"

# MAXDELAY is upper limit of a random time to wait before querying repositories.
# This applies to downloading updates (--prep) and installing updates (--apply).
# This is used to stagger load on the repository servers. Default is
# 3600 seconds so yum/dnf waits a random time between 1 and 3600 seconds.
# Value is set in seconds
# Valid Options: Positive Integer
MAXDELAY="3600"

# If there is a package manager lock then auter can be configured to wait for
# the lock to be released. There are 2 configurables. The wait time is set in
# PACKAGEMANAGERLOCKWAITTIME set in seconds. You can also define how many
# times to attemt before auter exits
PACKAGEMANAGERLOCKWAITTIME="60"
PACKAGEMANAGERLOCKRETRIES="5"

# Directories containing scripts to execute before and after updates are prepared,
# applied, and before/after a reboot (if applicable). Scripts in these
# directories must be executable (+x) for auter to run them. If any pre/post
# scripts run by auter exit with a non-zero exit code, auter will exit
# immediately before running any further actions.
PREPREPSCRIPTDIR="/etc/auter/pre-prep.d"
POSTPREPSCRIPTDIR="/etc/auter/post-prep.d"
PREAPPLYSCRIPTDIR="/etc/auter/pre-apply.d"
POSTAPPLYSCRIPTDIR="/etc/auter/post-apply.d"
PREREBOOTSCRIPTDIR="/etc/auter/pre-reboot.d"
POSTREBOOTSCRIPTDIR="/etc/auter/post-reboot.d"

Package Manager configuration

Global package manager options should be made in the relevant configuration files for the package manager. The PACKAGEMANAGEROPTIONS option in Auter is purely for per config set package manager settings.

Clone this wiki locally