Skip to content

feat: postgrest 13.0.4 #1685

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

Open
wants to merge 49 commits into
base: sam/ubuntu-24-04
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
30d66bb
feat: wip advance to ubuntu 24.04
samrose Jan 22, 2025
90058c5
fix; missing gp3 on image string
samrose Jan 22, 2025
80f78a2
chore: non-interactive
samrose Jan 22, 2025
ddb4a10
chore: set hostname in dhcp client
samrose Jan 22, 2025
6466b3b
chore: conform to new networking approach
samrose Jan 22, 2025
4b9f03f
ore: reverse he sha values
samrose Jan 22, 2025
ffddb2a
chore: fix kong address
samrose Jan 22, 2025
c3695e9
ore: typo in url
samrose Jan 22, 2025
60ffb3b
chore: drop old removals
samrose Jan 22, 2025
865f485
chore: remove defunct package
samrose Jan 23, 2025
158267b
chore: restore wal-g build approach
samrose Jan 23, 2025
fd0dd2d
chore: permission check and restore kong original version
samrose Jan 24, 2025
cc2f58f
chore: log output to debug
samrose Jan 24, 2025
437af01
chore: increase wait time before health checks.
samrose Jan 28, 2025
9aeb723
chore: post rebase cleanup
samrose Feb 11, 2025
6d52842
Update README.md
samrose Apr 2, 2025
dd2fce3
chore: restore function
samrose Apr 2, 2025
7e242bd
chore: remove unused file
samrose Apr 2, 2025
f6e2810
chore: make command non-interactive
samrose Apr 2, 2025
e32d5cc
chore: readme script
samrose Apr 2, 2025
ad64469
chore: ubuntu 24.04 has moved to use networkd and netplan by default,
samrose Apr 2, 2025
daeb9af
chore: update README
samrose Apr 7, 2025
7b79f4b
chore: bump versions for staging release/testing
samrose Apr 9, 2025
dab7482
chore: keep kong pinned to this version, was not meant to change
samrose Apr 9, 2025
3f4fda8
chore: bump version
samrose May 29, 2025
ee28527
chore: bump version
samrose Jun 9, 2025
27d4fd4
chore: bump testing version
samrose Jun 27, 2025
6f55597
chore: bump version for testing
samrose Jun 30, 2025
125293e
fix: bump oriole too
samrose Jun 30, 2025
7bb574c
chore: bump version for testng
samrose Jun 30, 2025
dcd3e92
fix: tmp use 20.04 untl worker scripts can be rewritten
samrose Jun 30, 2025
bb99291
chore: bump testing version
samrose Jun 30, 2025
07469e2
feat: netplan security and apply
samrose Jun 30, 2025
18e989c
chore: bump version for testing
samrose Jun 30, 2025
a01db79
chore: bump version
samrose Jun 30, 2025
d9a6d89
fix: netplan apply after upgrade
samrose Jul 1, 2025
a7da1bc
chore: bump version
samrose Jul 1, 2025
7b850c6
fix: transitional file name structure
samrose Jul 1, 2025
2de0381
chore: bump version
samrose Jul 1, 2025
7d4dc96
chore: bump versions
samrose Jul 1, 2025
9b0e655
chore: bump version
samrose Jul 1, 2025
17aa177
feat: netplan apply
samrose Jul 1, 2025
8066140
feat: Remove Requisite to prevent being killed when restarting networkd
samrose Jul 1, 2025
fa6fb14
feat: postgrest 13.0.4
samrose Jul 1, 2025
b041679
Update ansible/vars.yml
samrose Jul 1, 2025
4464828
fix: url path formatting
samrose Jul 1, 2025
74b5ac0
chore: version bump
samrose Jul 1, 2025
3a8668b
chore: bump version
samrose Jul 1, 2025
b36f62c
chore: bump version
samrose Jul 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ami-release-nix-single.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ jobs:
- name: Upload nix flake revision to s3 staging
run: |
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/24.04.tar.gz
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/upgrade_bundle.tar.gz

- name: configure aws credentials - prod
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -122,6 +124,8 @@ jobs:
- name: Upload nix flake revision to s3 prod
run: |
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/24.04.tar.gz
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/upgrade_bundle.tar.gz

- name: Create release
uses: softprops/action-gh-release@v2
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ami-release-nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ jobs:
- name: Upload nix flake revision to s3 staging
run: |
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/24.04.tar.gz
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/upgrade_bundle.tar.gz
- name: configure aws credentials - prod
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -144,6 +146,8 @@ jobs:
- name: Upload nix flake revision to s3 prod
run: |
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/24.04.tar.gz
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/upgrade_bundle.tar.gz
- name: Create release
uses: softprops/action-gh-release@v2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ jobs:

- name: Upload pg_upgrade scripts to s3 staging
run: |
aws s3 cp /tmp/pg_upgrade_bin.tar.gz "s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz"
aws s3 cp /tmp/pg_upgrade_bin.tar.gz s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz
aws s3 cp /tmp/pg_upgrade_bin.tar.gz s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/24.04.tar.gz
aws s3 cp /tmp/pg_upgrade_bin.tar.gz s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/upgrade_bundle.tar.gz

- name: Slack Notification on Failure
if: ${{ failure() }}
Expand Down Expand Up @@ -113,7 +115,9 @@ jobs:

- name: Upload pg_upgrade scripts to s3 prod
run: |
aws s3 cp /tmp/pg_upgrade_bin.tar.gz "s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz"
aws s3 cp /tmp/pg_upgrade_bin.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz
aws s3 cp /tmp/pg_upgrade_bin.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/24.04.tar.gz
aws s3 cp /tmp/pg_upgrade_bin.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/upgrade_bundle.tar.gz

- name: Slack Notification on Failure
if: ${{ failure() }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/testinfra-ami-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
include:
- runner: arm-runner
arch: arm64
ubuntu_release: focal
ubuntu_version: 20.04
ubuntu_release: noble
ubuntu_version: 24.04
mcpu: neoverse-n1
runs-on: ${{ matrix.runner }}
timeout-minutes: 150
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-15
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ARG index_advisor_release=0.2.0
ARG supautils_release=2.2.0
ARG wal_g_release=2.0.1

FROM ubuntu:focal as base
FROM ubuntu:noble as base

RUN apt update -y && apt install -y \
curl \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-orioledb-17
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ARG index_advisor_release=0.2.0
ARG supautils_release=2.2.0
ARG wal_g_release=3.0.5

FROM ubuntu:focal as base
FROM ubuntu:noble as base

RUN apt update -y && apt install -y \
curl \
Expand Down
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Unmodified Postgres with some useful plugins. Our goal with this repo is not to
## Primary Features
- ✅ Postgres [postgresql-15.8](https://www.postgresql.org/docs/15/index.html)
- ✅ Postgres [postgresql-17.4](https://www.postgresql.org/docs/17/index.html)
- ✅ Postgres [orioledb-postgresql-17_5](https://github.com/orioledb/orioledb)
- ✅ Ubuntu 20.04 (Focal Fossa).
- ✅ Postgres [orioledb-postgresql-17_6](https://github.com/orioledb/orioledb)
- ✅ Ubuntu 24.04 (Noble Numbat).
- ✅ [wal_level](https://www.postgresql.org/docs/current/runtime-config-wal.html) = logical and [max_replication_slots](https://www.postgresql.org/docs/current/runtime-config-replication.html) = 5. Ready for replication.
- ✅ [Large Systems Extensions](https://github.com/aws/aws-graviton-getting-started#building-for-graviton-and-graviton2). Enabled for ARM images.
## Extensions
Expand Down Expand Up @@ -42,7 +42,7 @@ Unmodified Postgres with some useful plugins. Our goal with this repo is not to
| [supabase-wrappers](https://github.com/supabase/wrappers/archive/v0.4.5.tar.gz) | [0.4.5](https://github.com/supabase/wrappers/archive/v0.4.5.tar.gz) | Various Foreign Data Wrappers (FDWs) for PostreSQL |
| [supautils](https://github.com/supabase/supautils/archive/refs/tags/v2.6.0.tar.gz) | [2.6.0](https://github.com/supabase/supautils/archive/refs/tags/v2.6.0.tar.gz) | PostgreSQL extension for enhanced security |
| [timescaledb-apache](https://github.com/timescale/timescaledb/archive/2.16.1.tar.gz) | [2.16.1](https://github.com/timescale/timescaledb/archive/2.16.1.tar.gz) | Scales PostgreSQL for time-series data via automatic partitioning across time and space |
| [vault](https://github.com/supabase/vault/archive/refs/tags/v0.2.9.tar.gz) | [0.2.9](https://github.com/supabase/vault/archive/refs/tags/v0.2.9.tar.gz) | Store encrypted secrets in PostgreSQL |
| [vault](https://github.com/supabase/vault/archive/refs/tags/v0.3.1.tar.gz) | [0.3.1](https://github.com/supabase/vault/archive/refs/tags/v0.3.1.tar.gz) | Store encrypted secrets in PostgreSQL |
| [wal2json](https://github.com/eulerto/wal2json/archive/wal2json_2_6.tar.gz) | [2_6](https://github.com/eulerto/wal2json/archive/wal2json_2_6.tar.gz) | PostgreSQL JSON output plugin for changeset extraction |

### PostgreSQL 17 Extensions
Expand All @@ -51,7 +51,6 @@ Unmodified Postgres with some useful plugins. Our goal with this repo is not to
| [hypopg](https://github.com/HypoPG/hypopg/archive/refs/tags/1.4.1.tar.gz) | [1.4.1](https://github.com/HypoPG/hypopg/archive/refs/tags/1.4.1.tar.gz) | Hypothetical Indexes for PostgreSQL |
| [index_advisor](https://github.com/olirice/index_advisor/archive/v0.2.0.tar.gz) | [0.2.0](https://github.com/olirice/index_advisor/archive/v0.2.0.tar.gz) | Recommend indexes to improve query performance in PostgreSQL |
| [pg-safeupdate](https://github.com/eradman/pg-safeupdate/archive/1.4.tar.gz) | [1.4](https://github.com/eradman/pg-safeupdate/archive/1.4.tar.gz) | A simple extension to PostgreSQL that requires criteria for UPDATE and DELETE |
| [pg_backtrace](https://github.com/pashkinelfe/pg_backtrace/archive/d100bac815a7365e199263f5b3741baf71b14c70.tar.gz) | [1.1](https://github.com/pashkinelfe/pg_backtrace/archive/d100bac815a7365e199263f5b3741baf71b14c70.tar.gz) | Updated fork of pg_backtrace |
| [pg_cron](https://github.com/citusdata/pg_cron/archive/v1.6.4.tar.gz) | [1.6.4](https://github.com/citusdata/pg_cron/archive/v1.6.4.tar.gz) | Run Cron jobs through PostgreSQL |
| [pg_graphql](https://github.com/supabase/pg_graphql/archive/v1.5.11.tar.gz) | [1.5.11](https://github.com/supabase/pg_graphql/archive/v1.5.11.tar.gz) | GraphQL support for PostreSQL |
| [pg_hashids](https://github.com/iCyberon/pg_hashids/archive/cd0e1b31d52b394a0df64079406a14a4f7387cd6.tar.gz) | [cd0e1b31d52b394a0df64079406a14a4f7387cd6](https://github.com/iCyberon/pg_hashids/archive/cd0e1b31d52b394a0df64079406a14a4f7387cd6.tar.gz) | Generate short unique IDs in PostgreSQL |
Expand All @@ -72,17 +71,17 @@ Unmodified Postgres with some useful plugins. Our goal with this repo is not to
| [plpgsql-check](https://github.com/okbob/plpgsql_check/archive/v2.7.11.tar.gz) | [2.7.11](https://github.com/okbob/plpgsql_check/archive/v2.7.11.tar.gz) | Linter tool for language PL/pgSQL |
| [postgis](https://download.osgeo.org/postgis/source/postgis-3.3.7.tar.gz) | [3.3.7](https://download.osgeo.org/postgis/source/postgis-3.3.7.tar.gz) | Geographic Objects for PostgreSQL |
| [rum](https://github.com/postgrespro/rum/archive/1.3.14.tar.gz) | [1.3.14](https://github.com/postgrespro/rum/archive/1.3.14.tar.gz) | Full text search index method for PostgreSQL |
| [supabase-wrappers](https://github.com/supabase/wrappers/archive/v0.4.4.tar.gz) | [0.4.4](https://github.com/supabase/wrappers/archive/v0.4.4.tar.gz) | Various Foreign Data Wrappers (FDWs) for PostreSQL |
| [supabase-wrappers](https://github.com/supabase/wrappers/archive/v0.4.5.tar.gz) | [0.4.5](https://github.com/supabase/wrappers/archive/v0.4.5.tar.gz) | Various Foreign Data Wrappers (FDWs) for PostreSQL |
| [supautils](https://github.com/supabase/supautils/archive/refs/tags/v2.6.0.tar.gz) | [2.6.0](https://github.com/supabase/supautils/archive/refs/tags/v2.6.0.tar.gz) | PostgreSQL extension for enhanced security |
| [vault](https://github.com/supabase/vault/archive/refs/tags/v0.2.9.tar.gz) | [0.2.9](https://github.com/supabase/vault/archive/refs/tags/v0.2.9.tar.gz) | Store encrypted secrets in PostgreSQL |
| [vault](https://github.com/supabase/vault/archive/refs/tags/v0.3.1.tar.gz) | [0.3.1](https://github.com/supabase/vault/archive/refs/tags/v0.3.1.tar.gz) | Store encrypted secrets in PostgreSQL |
| [wal2json](https://github.com/eulerto/wal2json/archive/wal2json_2_6.tar.gz) | [2_6](https://github.com/eulerto/wal2json/archive/wal2json_2_6.tar.gz) | PostgreSQL JSON output plugin for changeset extraction |

### PostgreSQL orioledb-17 Extensions
| Extension | Version | Description |
| ------------- | :-------------: | ------------- |
| [hypopg](https://github.com/HypoPG/hypopg/archive/refs/tags/1.4.1.tar.gz) | [1.4.1](https://github.com/HypoPG/hypopg/archive/refs/tags/1.4.1.tar.gz) | Hypothetical Indexes for PostgreSQL |
| [index_advisor](https://github.com/olirice/index_advisor/archive/v0.2.0.tar.gz) | [0.2.0](https://github.com/olirice/index_advisor/archive/v0.2.0.tar.gz) | Recommend indexes to improve query performance in PostgreSQL |
| [orioledb](https://github.com/orioledb/orioledb/archive/beta9.tar.gz) | [orioledb](https://github.com/orioledb/orioledb/archive/beta9.tar.gz) | orioledb |
| [orioledb](https://github.com/orioledb/orioledb/archive/beta10.tar.gz) | [orioledb](https://github.com/orioledb/orioledb/archive/beta10.tar.gz) | orioledb |
| [pg-safeupdate](https://github.com/eradman/pg-safeupdate/archive/1.4.tar.gz) | [1.4](https://github.com/eradman/pg-safeupdate/archive/1.4.tar.gz) | A simple extension to PostgreSQL that requires criteria for UPDATE and DELETE |
| [pg_cron](https://github.com/citusdata/pg_cron/archive/v1.6.4.tar.gz) | [1.6.4](https://github.com/citusdata/pg_cron/archive/v1.6.4.tar.gz) | Run Cron jobs through PostgreSQL |
| [pg_graphql](https://github.com/supabase/pg_graphql/archive/v1.5.11.tar.gz) | [1.5.11](https://github.com/supabase/pg_graphql/archive/v1.5.11.tar.gz) | GraphQL support for PostreSQL |
Expand All @@ -106,7 +105,7 @@ Unmodified Postgres with some useful plugins. Our goal with this repo is not to
| [rum](https://github.com/postgrespro/rum/archive/1.3.14.tar.gz) | [1.3.14](https://github.com/postgrespro/rum/archive/1.3.14.tar.gz) | Full text search index method for PostgreSQL |
| [supabase-wrappers](https://github.com/supabase/wrappers/archive/v0.4.5.tar.gz) | [0.4.5](https://github.com/supabase/wrappers/archive/v0.4.5.tar.gz) | Various Foreign Data Wrappers (FDWs) for PostreSQL |
| [supautils](https://github.com/supabase/supautils/archive/refs/tags/v2.6.0.tar.gz) | [2.6.0](https://github.com/supabase/supautils/archive/refs/tags/v2.6.0.tar.gz) | PostgreSQL extension for enhanced security |
| [vault](https://github.com/supabase/vault/archive/refs/tags/v0.2.9.tar.gz) | [0.2.9](https://github.com/supabase/vault/archive/refs/tags/v0.2.9.tar.gz) | Store encrypted secrets in PostgreSQL |
| [vault](https://github.com/supabase/vault/archive/refs/tags/v0.3.1.tar.gz) | [0.3.1](https://github.com/supabase/vault/archive/refs/tags/v0.3.1.tar.gz) | Store encrypted secrets in PostgreSQL |
| [wal2json](https://github.com/eulerto/wal2json/archive/wal2json_2_6.tar.gz) | [2_6](https://github.com/eulerto/wal2json/archive/wal2json_2_6.tar.gz) | PostgreSQL JSON output plugin for changeset extraction |
## Additional Goodies
*This is only available for our AWS EC2*
Expand Down Expand Up @@ -158,4 +157,4 @@ TODO: find way to automate this

We are building the features of Firebase using enterprise-grade, open source products. We support existing communities wherever possible, and if the products don’t exist we build them and open source them ourselves.

[![New Sponsor](https://user-images.githubusercontent.com/10214025/90518111-e74bbb00-e198-11ea-8f88-c9e3c1aa4b5b.png)](https://github.com/sponsors/supabase)
[![New Sponsor](https://user-images.githubusercontent.com/10214025/90518111-e74bbb00-e198-11ea-8f88-c9e3c1aa4b5b.png)](https://github.com/sponsors/supabase)
4 changes: 2 additions & 2 deletions amazon-arm64-nix.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
variable "ami" {
type = string
default = "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-arm64-server-*"
default = "ubuntu/images/hvm-ssd-gp3/ubuntu-noble-24.04-arm64-server-*"
}

variable "profile" {
Expand Down Expand Up @@ -115,7 +115,7 @@ source "amazon-ebssurrogate" "source" {
#secret_key = "${var.aws_secret_key}"
force_deregister = var.force-deregister

# Use latest official ubuntu focal ami owned by Canonical.
# Use latest official ubuntu noble ami owned by Canonical.
source_ami_filter {
filters = {
virtualization-type = "hvm"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ function complete_pg_upgrade {
echo "5.1. Restarting gotrue and postgrest"
retry 3 service gotrue restart
retry 3 service postgrest restart

echo "5.2. Applying netplan configuration to fix network issues"
retry 3 sudo netplan apply
else
retry 3 CI_stop_postgres || true
retry 3 CI_start_postgres
Expand Down
1 change: 1 addition & 0 deletions ansible/files/adminapi.sudoers.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Cmnd_Alias PGBOUNCER = /bin/systemctl start pgbouncer.service, /bin/systemctl st
%adminapi ALL= NOPASSWD: /bin/systemctl restart services.slice
%adminapi ALL= NOPASSWD: /usr/sbin/nft -f /etc/nftables/supabase_managed.conf
%adminapi ALL= NOPASSWD: /usr/bin/admin-mgr
%adminapi ALL= NOPASSWD: /usr/sbin/netplan apply
%adminapi ALL= NOPASSWD: ENVOY
%adminapi ALL= NOPASSWD: KONG
%adminapi ALL= NOPASSWD: POSTGREST
Expand Down
3 changes: 0 additions & 3 deletions ansible/files/permission_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"backup": [{"groupname": "backup", "username": "backup"}],
"list": [{"groupname": "list", "username": "list"}],
"irc": [{"groupname": "irc", "username": "irc"}],
"gnats": [{"groupname": "gnats", "username": "gnats"}],
"nobody": [{"groupname": "nogroup", "username": "nobody"}],
"systemd-network": [
{"groupname": "systemd-network", "username": "systemd-network"}
Expand Down Expand Up @@ -216,7 +215,6 @@ def main():
"backup",
"list",
"irc",
"gnats",
"nobody",
"systemd-network",
"systemd-resolve",
Expand All @@ -233,7 +231,6 @@ def main():
"adminapi",
"postgrest",
"tcpdump",
"systemd-coredump",
]
if not qemu_artifact:
usernames.append("ec2-instance-connect")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[Unit]
Description=Check if systemd-networkd has broken NDisc routes and fix
Requisite=systemd-networkd.service
# Remove Requisite to prevent being killed when restarting networkd
# Requisite=systemd-networkd.service
After=systemd-networkd.service

[Service]
Expand Down
4 changes: 4 additions & 0 deletions ansible/tasks/fix_ipv6_ndisc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@
systemd:
name: systemd-networkd-check-and-fix.timer
enabled: true

- name: Apply netplan configuration
shell: sudo netplan apply
when: debpkg_mode or nixpkg_mode
2 changes: 1 addition & 1 deletion ansible/tasks/setup-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

- name: Postgres - install server
apt:
name: postgresql-{{ postgresql_major }}={{ postgresql_release }}-1.pgdg20.04+1
name: postgresql-{{ postgresql_major }}={{ postgresql_release }}-1.pgdg24.04+1
install_recommends: no
when: debpkg_mode

Expand Down
6 changes: 3 additions & 3 deletions ansible/tasks/setup-postgrest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

- name: PostgREST - add Postgres PPA main
apt_repository:
repo: "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main"
repo: "deb http://apt.postgresql.org/pub/repos/apt/ noble-pgdg {{ postgresql_major }}"
state: present
filename: postgresql-pgdg

Expand Down Expand Up @@ -36,7 +36,7 @@

- name: PostgREST - remove Postgres PPA
apt_repository:
repo: "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main"
repo: "deb http://apt.postgresql.org/pub/repos/apt/ noble-pgdg {{ postgresql_major }}"
state: absent

- name: postgis - ensure dependencies do not get autoremoved
Expand All @@ -56,7 +56,7 @@

- name: PostgREST - download ubuntu binary archive (x86)
get_url:
url: "https://github.com/PostgREST/postgrest/releases/download/v{{ postgrest_release }}/postgrest-v{{ postgrest_release }}-linux-static-x64.tar.xz"
url: "https://github.com/PostgREST/postgrest/releases/download/v{{ postgrest_release }}/postgrest-v{{ postgrest_release }}-linux-static-x86-64.tar.xz"
dest: /tmp/postgrest.tar.xz
checksum: "{{ postgrest_x86_release_checksum }}"
timeout: 60
Expand Down
4 changes: 0 additions & 4 deletions ansible/tasks/setup-wal-g.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
owner: wal-g
group: wal-g
mode: '0664'
when: stage2_nix

- name: Move custom wal-g.conf file to /etc/postgresql-custom/wal-g.conf
template:
Expand All @@ -67,7 +66,6 @@
mode: 0664
owner: postgres
group: postgres
when: stage2_nix

- name: Add script to be run for restore_command
template:
Expand All @@ -76,15 +74,13 @@
mode: 0500
owner: postgres
group: postgres
when: stage2_nix

- name: Add helper script for wal_fetch.sh
template:
src: "files/walg_helper_scripts/wal_change_ownership.sh"
dest: /root/wal_change_ownership.sh
mode: 0700
owner: root
when: stage2_nix

- name: Include /etc/postgresql-custom/wal-g.conf in postgresql.conf
become: yes
Expand Down
Loading
Loading