supabase-postgres.git / summary / log / commit / refs

commit    bbb7d8cd9c7d47df3e492dc8e95fe1266c8aa2a5
Author:   Div Arora <root@darora.com>
Commit:   Div Arora <darora@users.noreply.github.com>
Date:     Thu Feb 15 23:50:44 2024 +0000

    fix: ensure Vector retains perms to write to a file under the pg log dir


ansible/files/postgresql_config/tmpfiles.postgresql.conf | 5 +++++ ansible/tasks/setup-supabase-internal.yml | 5 +++++ common.vars.pkr.hcl | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ansible/files/postgresql_config/tmpfiles.postgresql.conf b/ansible/files/postgresql_config/tmpfiles.postgresql.conf new file mode 100644 index 00000000..b5ea5494 --- /dev/null +++ b/ansible/files/postgresql_config/tmpfiles.postgresql.conf @@ -0,0 +1,5 @@ +# unchanged from upstream package +d /run/postgresql 2775 postgres postgres - - +# Log directory - ensure that our logging setup gets preserved +# and that vector can keep writing to a file here as well +d /var/log/postgresql 1775 postgres postgres - - diff --git a/ansible/tasks/setup-supabase-internal.yml b/ansible/tasks/setup-supabase-internal.yml index c33aefb7..849c7695 100644 --- a/ansible/tasks/setup-supabase-internal.yml +++ b/ansible/tasks/setup-supabase-internal.yml @@ -56,6 +56,11 @@ src: files/vector.service.j2 dest: /etc/systemd/system/vector.service +- name: configure tmpfiles for postgres - overwrites upstream package + template: + src: files/postgresql_config/tmpfiles.postgresql.conf + dest: /etc/tmpfiles.d/postgresql-common.conf + - name: fix permissions for vector config to be managed shell: cmd: | diff --git a/common.vars.pkr.hcl b/common.vars.pkr.hcl index d4caec55..93de32c7 100644 --- a/common.vars.pkr.hcl +++ b/common.vars.pkr.hcl @@ -1 +1 @@ -postgres-version = "15.1.1.16" +postgres-version = "15.1.1.17" [parent: 30b5568e4987]