From a72b875de467135b525f2b7e9ae516b210734508 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Tue, 20 Dec 2022 11:00:33 +0100 Subject: [PATCH] apt::source: configure repo only for current architecture Without this setting, we tell apt to download release information for all architectures apt knows. This includes i386 on amd64 systems. postgresql doesn't publish i386 packages. because of that, it results in a warning during apt update: N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://apt.postgresql.org/pub/repos/apt jammy-pgdg InRelease' doesn't support architecture 'i386' This is fixed with this change. --- manifests/repo/apt_postgresql_org.pp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/manifests/repo/apt_postgresql_org.pp b/manifests/repo/apt_postgresql_org.pp index c7f603f898..31b591a0f0 100644 --- a/manifests/repo/apt_postgresql_org.pp +++ b/manifests/repo/apt_postgresql_org.pp @@ -15,14 +15,15 @@ priority => 500, } -> apt::source { 'apt.postgresql.org': - location => $_baseurl, - release => "${facts['os']['distro']['codename']}-pgdg", - repos => 'main', - key => { + location => $_baseurl, + release => "${facts['os']['distro']['codename']}-pgdg", + repos => 'main', + architecture => $facts['os']['architecture'], + key => { id => 'B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8', source => 'https://www.postgresql.org/media/keys/ACCC4CF8.asc', }, - include => { + include => { src => false, }, }