8000 ensure bindir when installing pgsodium works for EC2 builds · sorokinvld/postgres@c4d0cfc · GitHub
[go: up one dir, main page]

Skip to content

Commit c4d0cfc

Browse files
dragarciadarora
authored andcommitted
ensure bindir when installing pgsodium works for EC2 builds
1 parent eaff28e commit c4d0cfc

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

ansible/files/postgresql_config/postgresql.conf.j2

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,6 @@ shared_preload_libraries = 'pg_stat_statements, pgaudit, plpgsql, plpgsql_check,
723723
jit_provider = 'llvmjit' # JIT library to use
724724

725725
# - Other Defaults -
726-
pgsodium.getkey_script= '{{ pg_bindir }}/pgsodium_getkey_urandom.sh'
727726

728727
#dynamic_library_path = '$libdir'
729728
#gin_fuzzy_search_limit = 0

ansible/tasks/docker/setup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
- set_fact:
2828
platform: "{{ platform_output.stdout }}"
2929

30-
- name: pgsodium - store postgres bin directory
30+
- name: Setup - determine postgres bin directory
3131
shell: pg_config --bindir
3232
register: pg_bindir_output
3333
- set_fact:

ansible/tasks/postgres-extensions/18-pgsodium.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,9 @@
6464
group: postgres
6565
mode: 0700
6666

67+
- name: pgsodium - set pgsodium.getkey_script
68+
become: yes
69+
lineinfile:
70+
path: /etc/postgresql/postgresql.conf
71+
state: present
72+
line: pgsodium.getkey_script= '{{ pg_bindir }}/pgsodium_getkey_urandom.sh'

ansible/tasks/setup-system.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@
6262
- update
6363
- update-only
6464

65+
- name: determine postgres bin directory
66+
shell: pg_config --bindir
67+
register: pg_bindir_output
68+
- set_fact:
69+
pg_bindir: "{{ pg_bindir_output.stdout }}"
70+
6571
- name: System - Create services.slice
6672
template:
6773
src: files/services.slice.j2

0 commit comments

Comments
 (0)
0