summaryrefslogtreecommitdiff
path: root/src/rabbit.erl
diff options
context:
space:
mode:
authorGerhard Lazu <gerhard@users.noreply.github.com>2019-08-12 17:59:23 +0100
committerGitHub <noreply@github.com>2019-08-12 17:59:23 +0100
commit2845f4eeedbbf17394e29e9eef9f6b52481cf79a (patch)
treef81879271ca73462dcba9c01a5e5fefc96a16647 /src/rabbit.erl
parentf47a339b8e528eaaa8b84e5be146a92ee687b99f (diff)
parent107bd08a1222d47bcf81891d832cb1fd039cb25b (diff)
downloadrabbitmq-server-git-2845f4eeedbbf17394e29e9eef9f6b52481cf79a.tar.gz
Merge pull request #2075 from rabbitmq/configure-cluster-name
Make it possible to pre-configure cluster name via config
Diffstat (limited to 'src/rabbit.erl')
-rw-r--r--src/rabbit.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index fdf2138515..3dd963b813 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -226,6 +226,12 @@
[{description, "ready to communicate with peers and clients"},
{requires, [core_initialized, recovery, routing_ready]}]}).
+-rabbit_boot_step({cluster_name,
+ [{description, "sets cluster name if configured"},
+ {mfa, {rabbit_nodes, boot, []}},
+ {requires, pre_flight}
+ ]}).
+
-rabbit_boot_step({direct_client,
[{description, "direct client"},
{mfa, {rabbit_direct, boot, []}},