Skip to content

Commit f25f685

Browse files
committed
fix local deploy
1 parent 7bb81cf commit f25f685

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

tests/deploy/tsdm.yml

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,26 @@
55
roles:
66

77
- role: postgres
8-
pg_port: 15432
8+
pg_port: 5432
99
pg_repo: https://github.com/kelvich/postgresql.git
1010
pg_version_tag: xtm_patched
1111
pg_destroy_and_init: true
1212
pg_datadir: ./postgrespro-data
1313

1414
- role: postgres
15-
pg_port: 15433
15+
pg_port: 5433
1616
pg_repo: https://github.com/kelvich/postgresql.git
1717
pg_version_tag: xtm_patched
1818
pg_destroy_and_init: true
1919
pg_datadir: ./postgrespro-data2
2020

21+
- role: postgres
22+
pg_port: 5433
23+
pg_repo: https://github.com/kelvich/postgresql.git
24+
pg_version_tag: xtm_patched
25+
pg_destroy_and_init: true
26+
pg_datadir: ./postgrespro-data3
27+
2128
tasks:
2229

2330
- name: clone dtm sources
@@ -35,7 +42,21 @@
3542

3643
- name: enable dtm extension on datanodes
3744
lineinfile:
38-
dest: "{{pg_datadir}}/postgresql.conf"
45+
dest: "postgrespro-data/postgresql.conf"
46+
regexp: "^shared_preload_libraries "
47+
line: "shared_preload_libraries = 'pg_dtm'"
48+
state: present
49+
50+
- name: enable dtm extension on datanodes
51+
lineinfile:
52+
dest: "postgrespro-data2/postgresql.conf"
53+
regexp: "^shared_preload_libraries "
54+
line: "shared_preload_libraries = 'pg_dtm'"
55+
state: present
56+
57+
- name: enable dtm extension on datanodes
58+
lineinfile:
59+
dest: "postgrespro-data3/postgresql.conf"
3960
regexp: "^shared_preload_libraries "
4061
line: "shared_preload_libraries = 'pg_dtm'"
4162
state: present
@@ -44,4 +65,8 @@
4465
command: "{{pg_dst}}/bin/pg_ctl restart -w -D ./postgrespro-data -l ./postgrespro-data/pg.log"
4566

4667
- name: restart postgrespro2
47-
command: "{{pg_dst}}/bin/pg_ctl restart -w -D ./postgrespro-data -l ./postgrespro-data/pg.log"
68+
command: "{{pg_dst}}/bin/pg_ctl restart -w -D ./postgrespro-data2 -l ./postgrespro-data/pg.log"
69+
70+
- name: restart postgrespro3
71+
command: "{{pg_dst}}/bin/pg_ctl restart -w -D ./postgrespro-data3 -l ./postgrespro-data/pg.log"
72+

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy