Added unattended-upgrades for debian CT's
This commit is contained in:
@@ -862,6 +862,42 @@ files:
|
||||
variants:
|
||||
- imgbuilder
|
||||
|
||||
#Unattended-Upgrade configuration
|
||||
- path: /etc/apt/apt.conf.d/50unattended-upgrades
|
||||
generator: dump
|
||||
content: |-
|
||||
Unattended-Upgrade::Origins-Pattern {
|
||||
|
||||
};
|
||||
|
||||
Dpkg::Options {
|
||||
"--force-confdef";
|
||||
"--force-confold";
|
||||
};
|
||||
|
||||
Unattended-Upgrade::Package-Blacklist {
|
||||
"mysql$";
|
||||
"mariadb$";
|
||||
};
|
||||
|
||||
Unattended-Upgrade::AutoFixInterruptedDpkg "true";
|
||||
Unattended-Upgrade::MinimalSteps "false";
|
||||
Unattended-Upgrade::InstallOnShutdown "false";
|
||||
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
|
||||
Unattended-Upgrade::Remove-Unused-Dependencies "true";
|
||||
//Unattended-Upgrade::Automatic-Reboot "true";
|
||||
//Unattended-Upgrade::Automatic-Reboot-WithUsers "true";
|
||||
//Unattended-Upgrade::Automatic-Reboot-Time "02:00";
|
||||
Unattended-Upgrade::SyslogEnable "true";
|
||||
|
||||
- path: /etc/apt/apt.conf.d/20auto-upgrades
|
||||
generator: dump
|
||||
content: |-
|
||||
APT::Periodic::Update-Package-Lists "1";
|
||||
APT::Periodic::Download-Upgradeable-Packages "1";
|
||||
APT::Periodic::AutocleanInterval "3";
|
||||
APT::Periodic::Unattended-Upgrade "1";
|
||||
|
||||
#Readme for FirstRunScript
|
||||
- path: /root/ReadMe
|
||||
generator: dump
|
||||
@@ -1004,6 +1040,7 @@ packages:
|
||||
- net-tools
|
||||
- openssh-client
|
||||
- procps
|
||||
- unattended-upgrades
|
||||
action: install
|
||||
|
||||
#Basic/Default pkgs
|
||||
|
||||
Reference in New Issue
Block a user