50unattended-upgrades.Debian.buster 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. //
  2. // Unattended Upgrades Configuration (Salt managed)
  3. //
  4. // Unattended-Upgrade::Origins-Pattern controls which packages are
  5. // upgraded.
  6. //
  7. // Lines below have the format format is "keyword=value,...". A
  8. // package will be upgraded only if the values in its metadata match
  9. // all the supplied keywords in a line. (In other words, omitted
  10. // keywords are wild cards.) The keywords originate from the Release
  11. // file, but several aliases are accepted. The accepted keywords are:
  12. // a,archive,suite (eg, "stable")
  13. // c,component (eg, "main", "contrib", "non-free")
  14. // l,label (eg, "Debian", "Debian-Security")
  15. // o,origin (eg, "Debian", "Unofficial Multimedia Packages")
  16. // n,codename (eg, "jessie", "jessie-updates")
  17. // site (eg, "http.debian.net")
  18. // The available values on the system are printed by the command
  19. // "apt-cache policy", and can be debugged by running
  20. // "unattended-upgrades -d" and looking at the log file.
  21. //
  22. // Within lines unattended-upgrades allows 2 macros whose values are
  23. // derived from /etc/debian_version:
  24. // ${distro_id} Installed origin.
  25. // ${distro_codename} Installed codename (eg, "buster")
  26. Unattended-Upgrade::Origins-Pattern {
  27. // Archive or Suite based matching:
  28. // Note that this will silently match a different release after
  29. // migration to the specified archive (e.g. testing becomes the
  30. // new stable).
  31. "o=Debian,n=buster";
  32. "o=Debian,n=buster,a=stable-updates";
  33. "o=Debian,n=buster,a=proposed-updates";
  34. "o=Debian,n=buster,l=Debian-Security";
  35. "o=Debian Backports,n=buster-backports,l=Debian Backports";
  36. "origin=Debian,archive=stable,label=Debian-Security";
  37. "origin=Debian,archive=oldstable,label=Debian-Security";
  38. };
  39. // List of packages to not update
  40. Unattended-Upgrade::Package-Blacklist {
  41. "libc6";
  42. "libc6-dev";
  43. "libc6-i686";
  44. "bird";
  45. "fastd";
  46. "batman-adv-dkms";
  47. "ifupdown2";
  48. };
  49. // This option allows you to control if on a unclean dpkg exit
  50. // unattended-upgrades will automatically run
  51. // dpkg --force-confold --configure -a
  52. // The default is true, to ensure updates keep getting installed
  53. //Unattended-Upgrade::AutoFixInterruptedDpkg "true";
  54. // Split the upgrade into the smallest possible chunks so that
  55. // they can be interrupted with SIGTERM. This makes the upgrade
  56. // a bit slower but it has the benefit that shutdown while a upgrade
  57. // is running is possible (with a small delay)
  58. //Unattended-Upgrade::MinimalSteps "true";
  59. // Install all updates when the machine is shutting down
  60. // instead of doing it in the background while the machine is running.
  61. // This will (obviously) make shutdown slower.
  62. // Unattended-upgrades increases logind's InhibitDelayMaxSec to 30s.
  63. // This allows more time for unattended-upgrades to shut down gracefully
  64. // or even install a few packages in InstallOnShutdown mode, but is still a
  65. // big step back from the 30 minutes allowed for InstallOnShutdown previously.
  66. // Users enabling InstallOnShutdown mode are advised to increase
  67. // InhibitDelayMaxSec even further, possibly to 30 minutes.
  68. //Unattended-Upgrade::InstallOnShutdown "false";
  69. // Send email to this address for problems or packages upgrades
  70. // If empty or unset then no email is sent, make sure that you
  71. // have a working mail setup on your system. A package that provides
  72. // 'mailx' must be installed. E.g. "user@example.com"
  73. Unattended-Upgrade::Mail "root";
  74. // Set this value to "true" to get emails only on errors. Default
  75. // is to always send a mail if Unattended-Upgrade::Mail is set
  76. Unattended-Upgrade::MailOnlyOnError "true";
  77. // Remove unused automatically installed kernel-related packages
  78. // (kernel images, kernel headers and kernel version locked tools).
  79. Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
  80. // Do automatic removal of newly unused dependencies after the upgrade
  81. //Unattended-Upgrade::Remove-New-Unused-Dependencies "true";
  82. // Do automatic removal of unused packages after the upgrade
  83. // (equivalent to apt-get autoremove)
  84. Unattended-Upgrade::Remove-Unused-Dependencies "false";
  85. // Automatically reboot *WITHOUT CONFIRMATION* if
  86. // the file /var/run/reboot-required is found after the upgrade
  87. Unattended-Upgrade::Automatic-Reboot "false";
  88. // Automatically reboot even if there are users currently logged in
  89. // when Unattended-Upgrade::Automatic-Reboot is set to true
  90. //Unattended-Upgrade::Automatic-Reboot-WithUsers "true";
  91. // If automatic reboot is enabled and needed, reboot at the specific
  92. // time instead of immediately
  93. // Default: "now"
  94. //Unattended-Upgrade::Automatic-Reboot-Time "02:00";
  95. // Use apt bandwidth limit feature, this example limits the download
  96. // speed to 70kb/sec
  97. //Acquire::http::Dl-Limit "70";
  98. // Enable logging to syslog. Default is False
  99. Unattended-Upgrade::SyslogEnable "true";
  100. // Specify syslog facility. Default is daemon
  101. Unattended-Upgrade::SyslogFacility "daemon";
  102. // Download and install upgrades only on AC power
  103. // (i.e. skip or gracefully stop updates on battery)
  104. // Unattended-Upgrade::OnlyOnACPower "true";
  105. // Download and install upgrades only on non-metered connection
  106. // (i.e. skip or gracefully stop updates on a metered connection)
  107. // Unattended-Upgrade::Skip-Updates-On-Metered-Connections "true";
  108. // Verbose logging
  109. // Unattended-Upgrade::Verbose "false";
  110. // Print debugging information both in unattended-upgrades and
  111. // in unattended-upgrade-shutdown
  112. // Unattended-Upgrade::Debug "false";
  113. // Force dpkg to keep any existing configuration file regardless of
  114. // what the package might bring
  115. DPkg::Options:: "--force-confold";