Skip to content

Commit 578c08a

Browse files
committed
tsdtm deploy scripts update
1 parent 6a3bf9b commit 578c08a

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

contrib/pg_tsdtm/tests/deploy/cluster.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,12 @@
88
pg_destroy_and_init: true
99

1010
tasks:
11-
- name: clone dtm sources
12-
git: repo=https://github.com/postgrespro/pg_tsdtm.git
13-
dest={{pg_prefix}}/pg_dtm
14-
accept_hostkey=yes
15-
update=yes
16-
force=yes
17-
register: dtm_sources
18-
19-
- name: build dtm
11+
- name: build tsdtm
2012
shell: "make clean && make -j {{makejobs}} install"
2113
args:
22-
chdir: "{{pg_prefix}}/pg_dtm"
14+
chdir: "{{pg_src}}/contrib/pg_tsdtm"
2315
environment:
2416
PG_CONFIG: "{{pg_dst}}/bin/pg_config"
25-
when: dtm_sources.changed
2617

2718
- name: enable dtm extension on datanodes
2819
lineinfile:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242

4343
#############################################################################
4444

45+
- name: stop postgres if it was running
46+
shell: "pkill -9 postgres || true"
47+
4548
- name: clone postgres sources
4649
git: repo={{pg_repo}}
4750
dest={{pg_src}}

0 commit comments

Comments
 (0)