File tree Expand file tree Collapse file tree 2 files changed +29
-11
lines changed Expand file tree Collapse file tree 2 files changed +29
-11
lines changed Original file line number Diff line number Diff line change 4141 environment :
4242 LD_LIBRARY_PATH : " {{pg_dst}}/lib/"
4343
44+ - name : copy transfers source
45+ copy : src=../{{item}} dest=~/{{item}} mode=0755
46+ with_items :
47+ - " dtmbench.cpp"
48+
49+ - name : clone pqxx
50+ git : repo=https://github.com/Ambrosys/pqxx.git
51+ dest=~/pqxx
52+ accept_hostkey=yes
53+ update=no
54+ force=yes
55+ register : pqxx
56+
57+ - name : build pqxx
58+ shell : " ./configure --prefix=/home/{{ansible_ssh_user}}/pg_cluster/install/ --enable-shared && make -j4 && make install"
59+ args :
60+ chdir : " ~/pqxx"
61+ environment :
62+ PATH : " /home/{{ansible_ssh_user}}/pg_cluster/install/bin/:{{ansible_env.PATH}}"
63+ when : pqxx.changed
64+
65+ - name : compile dtmbench
66+ shell : " g++ -g -Wall -O2 -o dtmbench dtmbench.cpp -lpqxx -lpq -pthread -L/home/{{ansible_ssh_user}}/pg_cluster/install/lib/ -I/home/{{ansible_ssh_user}}/pg_cluster/install/include/"
67+
68+ - name : move dtmbench to bin
69+ shell : " mv dtmbench ~/pg_cluster/install/bin/dtmbench"
70+
4471- hosts : nodes[0]
4572 tasks :
4673 - name : build dtmd
Original file line number Diff line number Diff line change 1515 set_fact :
1616 connections : " {{ connstrs.results | map(attribute='ansible_facts.connstr') | join }}"
1717
18- - name : copy transfers source
19- copy : src=./{{item}} dest=~/{{item}} mode=0755
20- with_items :
21- - " dtmbench.cpp"
22-
23- - name : compile dtmbench
24- shell : " g++ -g -Wall -O2 -o dtmbench dtmbench.cpp -lpqxx -lpq -pthread"
25-
26- - name : compile dtmbench
27- shell : " mv dtmbench ~/pg_cluster/install/bin/dtmbench"
28-
2918- hosts : clients[0]
3019 gather_facts : no
3120 tasks :
3221 - name : init database
3322 shell : " ~/pg_cluster/install/bin/dtmbench {{connections}} -a 500000 -i"
3423 register : init_result
24+ environment :
25+ LD_LIBRARY_PATH : " /home/{{ansible_ssh_user}}/pg_cluster/install/lib"
3526 - debug : var=init_result
3627
3728- hosts : clients
You can’t perform that action at this time.
0 commit comments