Skip to content

Commit 0510958

Browse files
author
Dmitry Vasilyev
committed
fix LD_LIBRARY_PATH
1 parent cbe3475 commit 0510958

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

tests/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/deploy/hosts
2+
/deploy/pg_cluster_install.tgz
3+
/perf.results

tests/deploy/cluster.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
- name: restart postgrespro
4545
command: "{{pg_dst}}/bin/pg_ctl restart -w -D {{pg_datadir}} -l {{pg_datadir}}/pg.log"
4646
environment:
47-
LD_LIBRARY_PATH: "{{pg_dst}}/lib/"
47+
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:{{pg_dst}}/lib/"
4848

4949
- hosts: clients
5050
tasks:

tests/deploy/roles/postgres/tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
- name: stop postgres if it was running
9494
shell: "kill -9 `head -n 1 {{pg_datadir}}/postmaster.pid`"
9595
environment:
96-
LD_LIBRARY_PATH: "{{pg_dst}}/lib"
96+
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:{{pg_dst}}/lib"
9797
when: pg_pidfile.stat.exists
9898

9999
- name: remove datadirs on datanodes
@@ -103,7 +103,7 @@
103103
- name: create datadirs on datanodes
104104
command: "{{pg_dst}}/bin/initdb {{pg_datadir}}"
105105
environment:
106-
LD_LIBRARY_PATH: "{{pg_dst}}/lib/"
106+
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:{{pg_dst}}/lib/"
107107
args:
108108
creates: "{{pg_datadir}}"
109109

@@ -129,5 +129,5 @@
129129
- name: start postgrespro
130130
shell: "{{pg_dst}}/bin/pg_ctl start -w -D {{pg_datadir}} -l {{pg_datadir}}/pg.log"
131131
environment:
132-
LD_LIBRARY_PATH: "{{pg_dst}}/lib/"
132+
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:{{pg_dst}}/lib"
133133

tests/perf.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
gather_facts: no
3131
tasks:
3232
- name: init database
33+
environment:
34+
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:/home/{{ansible_ssh_user}}/pg_cluster/install/lib"
3335
shell: "~/pg_cluster/install/bin/dtmbench {{connections}} -a 2000000 -i"
3436
register: init_result
3537
- debug: var=init_result
@@ -49,7 +51,7 @@
4951
sed "s/^/`hostname`:/"
5052
register: transfers_result
5153
environment:
52-
LD_LIBRARY_PATH: "/home/{{ansible_ssh_user}}/pg_cluster/install/lib"
54+
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:/home/{{ansible_ssh_user}}/pg_cluster/install/lib"
5355

5456
- debug: var=transfers_result
5557

0 commit comments

Comments
 (0)