Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postgresql role is broken with multiple problems #2425

Open
ser opened this issue Sep 28, 2023 · 0 comments
Open

postgresql role is broken with multiple problems #2425

ser opened this issue Sep 28, 2023 · 0 comments

Comments

@ser
Copy link
Contributor

ser commented Sep 28, 2023

Hello, as Postgresql.org introduced replacement of GPG keys IDs with GPG files in its apt repository, postgresql debops role is broken and is not able to install required packages.

I have found a pretty dirty workaround, firstly manually downloading required key file:

curl -o /etc/apt/keyrings/postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc

and then making following entries to debops configuration (I use debian sid):

postgresql_server__upstream_apt_repo: 'deb [signed-by=/etc/apt/keyrings/postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt/ sid-pgdg main 16'
postgresql_server__upstream_key_id: '1505 8500 A023 5D97 F5D1  0063 B188 E2B6 95BD 4743'
postgresql__upstream_key_id: '1505 8500 A023 5D97 F5D1  0063 B188 E2B6 95BD 4743'
postgresql__upstream_apt_repo: 'deb [signed-by=/etc/apt/keyrings/postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt/ sid-pgdg main 16'

The key 1505 8500 A023 5D97 F5D1 0063 B188 E2B6 95BD 4743 can by any random valid key you trust - it is here just to overcome problems with non-existence of default key ID specified in postgresql role.

required changes for version 16

It's also required to remove vacuum_defer_cleanup_age from /etc/postgresql/16/main/postgresql.conf created by the role, as this parameter is not available in PG16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant