Skip to content

Commit e37c298

Browse files
committed
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.
1 parent 276c160 commit e37c298

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

manifests/repo/apt_postgresql_org.pp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@
1515
priority => 500,
1616
}
1717
-> apt::source { 'apt.postgresql.org':
18-
location => $_baseurl,
19-
release => "${facts['os']['distro']['codename']}-pgdg",
20-
repos => 'main',
21-
key => {
18+
location => $_baseurl,
19+
release => "${facts['os']['distro']['codename']}-pgdg",
20+
repos => 'main',
21+
architecture => $facts['os']['architecture'],
22+
key => {
2223
id => 'B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8',
2324
source => 'https://www.postgresql.org/media/keys/ACCC4CF8.asc',
2425
},
25-
include => {
26+
include => {
2627
src => false,
2728
},
2829
}

0 commit comments

Comments
 (0)