File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -37,3 +37,12 @@ clean:
3737
3838distclean : clean
3939 $(MAKE ) -C $(DEPS_DIR ) /rabbitmq_codegen clean
40+
41+ .PHONY : cluster-other-node
42+
43+ cluster-other-node :
44+ $(exec_verbose ) $(RABBITMQCTL ) -n $(OTHER_NODE ) stop_app
45+ $(verbose ) $(RABBITMQCTL ) -n $(OTHER_NODE ) reset
46+ $(verbose ) $(RABBITMQCTL ) -n $(OTHER_NODE ) join_cluster \
47+ $(if $(MAIN_NODE ) ,$(MAIN_NODE ) ,$(RABBITMQ_NODENAME ) @$$(hostname -s ) )
48+ $(verbose ) $(RABBITMQCTL ) -n $(OTHER_NODE ) start_app
Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ case ~/^create-test-cluster$/:
3333
3434 command = [
3535 properties[' make.bin' ],
36- ' -C' , properties[' rabbitmq.dir' ],
3736 ' --no-print-directory' ,
3837 ' cluster-other-node' ,
38+ " RABBITMQCTL=${ properties['rabbitmqctl.bin']} " ,
3939 " DEPS_DIR=${ properties['deps.dir']} " ,
4040 " OTHER_NODE=${ nodename} " ,
4141 " MAIN_NODE=${ target} "
You can’t perform that action at this time.
0 commit comments