feat: Add unattended-upgrades system profile #14
@@ -0,0 +1,32 @@
|
||||
name: unattended-upgrades
|
||||
description: "Profil pour activer les unattended upgrades sur Ubuntu"
|
||||
devices: {}
|
||||
config:
|
||||
cloud-init.vendor-data: |
|
||||
#cloud-config
|
||||
package_update: true
|
||||
package_upgrade: true
|
||||
packages:
|
||||
- unattended-upgrades
|
||||
- apt-listchanges
|
||||
|
||||
write_files:
|
||||
- path: /etc/apt/apt.conf.d/20auto-upgrades
|
||||
content: |
|
||||
APT::Periodic::Update-Package-Lists "1";
|
||||
APT::Periodic::Unattended-Upgrade "1";
|
||||
APT::Periodic::AutocleanInterval "7";
|
||||
|
||||
- path: /etc/apt/apt.conf.d/50unattended-upgrades
|
||||
content: |
|
||||
Unattended-Upgrade::Allowed-Origins {
|
||||
"${distro_id}:${distro_codename}";
|
||||
"${distro_id}:${distro_codename}-security";
|
||||
"${distro_id}ESM:${distro_codename}";
|
||||
};
|
||||
Unattended-Upgrade::Automatic-Reboot "false";
|
||||
Unattended-Upgrade::Automatic-Reboot-Time "02:00";
|
||||
Unattended-Upgrade::Remove-Unused-Dependencies "true";
|
||||
|
||||
runcmd:
|
||||
- [ systemctl, enable, --now, unattended-upgrades ]
|
||||
Reference in new issue
Block a user