50unattended-upgrades 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // Unattended-Upgrade::Origins-Pattern controls which packages are
  2. // upgraded.
  3. //
  4. // Lines below have the format format is "keyword=value,...". A
  5. // package will be upgraded only if the values in its metadata match
  6. // all the supplied keywords in a line. (In other words, omitted
  7. // keywords are wild cards.) The keywords originate from the Release
  8. // file, but several aliases are accepted. The accepted keywords are:
  9. // a,archive,suite (eg, "stable")
  10. // c,component (eg, "main", "crontrib", "non-free")
  11. // l,label (eg, "Debian", "Debian-Security")
  12. // o,origin (eg, "Debian", "Unofficial Multimedia Packages")
  13. // n,codename (eg, "jessie", "jessie-updates")
  14. // site (eg, "http.debian.net")
  15. // The available values on the system are printed by the command
  16. // "apt-cache policy", and can be debugged by running
  17. // "unattended-upgrades -d" and looking at the log file.
  18. //
  19. // Within lines unattended-upgrades allows 2 macros whose values are
  20. // derived from /etc/debian_version:
  21. // ${distro_id} Installed origin.
  22. // ${distro_codename} Installed codename (eg, "jessie")
  23. Unattended-Upgrade::Origins-Pattern {
  24. // Codename based matching:
  25. // This will follow the migration of a release through different
  26. // archives (e.g. from testing to stable and later oldstable).
  27. // "o=Debian,n=jessie";
  28. // "o=Debian,n=jessie-updates";
  29. // "o=Debian,n=jessie-proposed-updates";
  30. // "o=Debian,n=jessie,l=Debian-Security";
  31. // Archive or Suite based matching:
  32. // Note that this will silently match a different release after
  33. // migration to the specified archive (e.g. testing becomes the
  34. // new stable).
  35. // "o=Debian,a=stable";
  36. // "o=Debian,a=stable-updates";
  37. // "o=Debian,a=proposed-updates";
  38. "origin=Debian,codename=${distro_codename},label=Debian-Security";
  39. };
  40. // List of packages to not update (regexp are supported)
  41. Unattended-Upgrade::Package-Blacklist {
  42. // "vim";
  43. // "libc6";
  44. // "libc6-dev";
  45. // "libc6-i686";
  46. };
  47. // This option allows you to control if on a unclean dpkg exit
  48. // unattended-upgrades will automatically run
  49. // dpkg --force-confold --configure -a
  50. // The default is true, to ensure updates keep getting installed
  51. //Unattended-Upgrade::AutoFixInterruptedDpkg "false";
  52. // Split the upgrade into the smallest possible chunks so that
  53. // they can be interrupted with SIGUSR1. This makes the upgrade
  54. // a bit slower but it has the benefit that shutdown while a upgrade
  55. // is running is possible (with a small delay)
  56. //Unattended-Upgrade::MinimalSteps "true";
  57. // Install all unattended-upgrades when the machine is shuting down
  58. // instead of doing it in the background while the machine is running
  59. // This will (obviously) make shutdown slower
  60. //Unattended-Upgrade::InstallOnShutdown "true";
  61. // Send email to this address for problems or packages upgrades
  62. // If empty or unset then no email is sent, make sure that you
  63. // have a working mail setup on your system. A package that provides
  64. // 'mailx' must be installed. E.g. "user@example.com"
  65. Unattended-Upgrade::Mail "{{ unattended_upgrade_mail }}";
  66. // Set this value to "true" to get emails only on errors. Default
  67. // is to always send a mail if Unattended-Upgrade::Mail is set
  68. //Unattended-Upgrade::MailOnlyOnError "true";
  69. // Do automatic removal of new unused dependencies after the upgrade
  70. // (equivalent to apt-get autoremove)
  71. //Unattended-Upgrade::Remove-Unused-Dependencies "false";
  72. // Automatically reboot *WITHOUT CONFIRMATION* if
  73. // the file /var/run/reboot-required is found after the upgrade
  74. //Unattended-Upgrade::Automatic-Reboot "false";
  75. // If automatic reboot is enabled and needed, reboot at the specific
  76. // time instead of immediately
  77. // Default: "now"
  78. //Unattended-Upgrade::Automatic-Reboot-Time "02:00";
  79. // Use apt bandwidth limit feature, this example limits the download
  80. // speed to 70kb/sec
  81. //Acquire::http::Dl-Limit "70";