Enable automatic cleanup
Set Unattended-Upgrade:Remove-Unused-Dependencies flag to true, that is the equivalent of enabling automatic apt-get autoremove. This will regularly clean up cruft from our servers, preventing them to run out of disk space or inodes unexpectedly. Change-Id: I37871087b7b3beb02329d84ef240bde23197291b
This commit is contained in:
parent
5d3332de4e
commit
677d48d42f
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
class unattended_upgrades(
|
class unattended_upgrades(
|
||||||
$ensure = present,
|
$ensure = present,
|
||||||
$origins = []
|
$origins = [],
|
||||||
) {
|
) {
|
||||||
package { 'unattended-upgrades':
|
package { 'unattended-upgrades':
|
||||||
ensure => $ensure,
|
ensure => $ensure,
|
||||||
|
@ -26,7 +26,7 @@ Unattended-Upgrade::Mail "root";
|
|||||||
|
|
||||||
// Do automatic removal of new unused dependencies after the upgrade
|
// Do automatic removal of new unused dependencies after the upgrade
|
||||||
// (equivalent to apt-get autoremove)
|
// (equivalent to apt-get autoremove)
|
||||||
//Unattended-Upgrade::Remove-Unused-Dependencies "false";
|
Unattended-Upgrade::Remove-Unused-Dependencies "true";
|
||||||
|
|
||||||
// Automatically reboot *WITHOUT CONFIRMATION* if a
|
// Automatically reboot *WITHOUT CONFIRMATION* if a
|
||||||
// the file /var/run/reboot-required is found after the upgrade
|
// the file /var/run/reboot-required is found after the upgrade
|
||||||
|
Loading…
x
Reference in New Issue
Block a user