Skip to content

Commit

Permalink
Add pg_backtrace into prod vars
Browse files Browse the repository at this point in the history
  • Loading branch information
pashkinelfe authored and darora committed Aug 9, 2024
1 parent cb95314 commit 998d14a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ansible/tasks/postgres-extensions/30-pg_backtrace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# pg_backtrace
- name: pg_backtrace - download latest release
git:
repo: https://github.com/pashkinelfe/pg_backtrace.git
dest: /tmp/pg_backtrace
version: 'v{{ pg_backtrace_release }}'
become: yes

- name: pg_backtrace - build
make:
chdir: /tmp/pg_backtrace
become: yes

- name: pg_backtrace - install
make:
chdir: /tmp/pg_backtrace
target: install
become: yes

- name: pg_backtrace - cleanup
file:
state: absent
path: /tmp/pg_backtrace
3 changes: 3 additions & 0 deletions ansible/tasks/setup-extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@
- name: Install Trusted Language Extensions
import_tasks: tasks/postgres-extensions/29-pg_tle.yml

- name: Install pg_backtrace
import_tasks: tasks/postgres-extensions/30-pg_backtrace.yml

- name: Verify async task status
import_tasks: tasks/postgres-extensions/99-finish_async_tasks.yml
when: async_mode
3 changes: 3 additions & 0 deletions ansible/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,6 @@ pg_tle_release_checksum: sha256:d04f72d88b21b954656609743560684ac42645b64a36c800

index_advisor_release: "0.2.0"
index_advisor_checksum: sha256:2d3642012a9185cda51f1e82ba43d64a81b24a2655a3ac3afdcbbd95d46a1a27

pg_backtrace_release: "1.1"
pg_backtrace_checksum: sha256:4950d42917994f6c78e6448b7b91aae199bb6955bea0445308430885d6f635cb

0 comments on commit 998d14a

Please sign in to comment.