ansible-hardening/files/20auto-upgrades
Matt Thompson d1ca8dbaa7 Add ability to enable unattended upgrades
This commit adds the ability to enable automatic package upgrades via
openstack-ansible-security.  To enable, add the following variable to
your /etc/openstack_deploy/user_variables.yml file:

unattended_upgrades_enabled: true

To have the unattended upgrades system send e-mail notifications
when packages need updating or errors are encountered, add the
following to user_variables.yml:

unattended_upgrades_notifications: true

As many organisations do not subscribe to auto updates, this
functionality will remain disabled by default.

Note that the first iteration of this change does not allow deep
customisation of unatteded-upgrades.  This means that as it stands
only trusty-security (or $distro-security) updates will be applied.

Closes-Bug: #1568075

Change-Id: I22ba1a02acfbe2befb601af6a4099d53d988d856
2016-04-15 11:58:29 +01:00

3 lines
80 B
Plaintext

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";