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

Add support for Debian Bookworm #229

Merged
merged 1 commit into from
Nov 24, 2023
Merged

Add support for Debian Bookworm #229

merged 1 commit into from
Nov 24, 2023

Conversation

javierm
Copy link
Member

@javierm javierm commented Oct 24, 2023

Objectives

  • Make it possible to install Consul Democracy in the latest stable version of Debian

@javierm javierm added the Devops label Oct 24, 2023
@javierm javierm self-assigned this Oct 24, 2023
@Senen Senen force-pushed the debian_bookworm branch 4 times, most recently from 4cf6140 to 75fcefa Compare October 31, 2023 12:13
@Senen
Copy link
Member

Senen commented Oct 31, 2023

Hi @javierm, I added a commit to fix the database permissions error when using PostgreSQL 15 (Debian Bookworn installs this version while Ubuntu 22.04 install PostgreSQL 14). Let me know what you think!

@Senen Senen self-assigned this Oct 31, 2023
@Senen Senen added the 2.1 label Oct 31, 2023
@Senen Senen force-pushed the add_ubuntu_22.04_support branch 3 times, most recently from e2971a7 to d933c6e Compare November 16, 2023 16:44
Base automatically changed from add_ubuntu_22.04_support to release_2.1.0 November 23, 2023 18:49
Since Bookworm comes with PostgreSQL 15, we need to make the
`deploy_user` the database owner. Quoting the PostgreSQL 15 release
notes [1]:

> PostgreSQL 15 also revokes the CREATE permission from all users
> except a database owner from the public (or default) schema.

Now, we first create the user without any privileges, then create the
database with the new user as the database owner and finally grant
all privileges to the new user on the new database.

[1] https://www.postgresql.org/about/news/postgresql-15-released-2526/

Co-Authored-By: Senén Rodero <senenrodero@gmail.com>
@javierm javierm marked this pull request as ready for review November 24, 2023 11:14
@javierm javierm merged commit e26afe6 into release_2.1.0 Nov 24, 2023
8 checks passed
@javierm javierm deleted the debian_bookworm branch November 24, 2023 11:17
@javierm javierm removed the 2.1 label Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants