From 5259e13eef8b433a422517267eefb015f74dd082 Mon Sep 17 00:00:00 2001 From: cronekorkn Date: Tue, 6 Jun 2023 10:25:46 +0200 Subject: [PATCH] apt disable package cache --- bundles/apt/files/00disable-package-cache | 2 ++ bundles/apt/items.py | 1 + 2 files changed, 3 insertions(+) create mode 100644 bundles/apt/files/00disable-package-cache diff --git a/bundles/apt/files/00disable-package-cache b/bundles/apt/files/00disable-package-cache new file mode 100644 index 0000000..6add3a9 --- /dev/null +++ b/bundles/apt/files/00disable-package-cache @@ -0,0 +1,2 @@ +Dir::Cache ""; +Dir::Cache::archives ""; diff --git a/bundles/apt/items.py b/bundles/apt/items.py index 204b626..c53e8cf 100644 --- a/bundles/apt/items.py +++ b/bundles/apt/items.py @@ -112,6 +112,7 @@ for package, options in node.metadata.get('apt/packages', {}).items(): # apt-daily.timer: performs apt update # apt-daily-upgrade.timer: performs apt upgrade +files['/etc/apt/apt.conf.d/00disable-package-cache'] = {} files['/etc/apt/apt.conf.d/20auto-upgrades'] = {} files['/etc/apt/apt.conf.d/50unattended-upgrades'] = {} svc_systemd['unattended-upgrades.service'] = {