Skip to content

Commit 5f9752c

Browse files
Support short peer_discovery_backend values
The list of backends that will be available when 3.7.0 ships is shaping up. Still to port: etcd and Kubernetes.
1 parent b856258 commit 5f9752c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

priv/schema/rabbitmq.schema

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,19 @@ end}.
782782
{datatype, atom}
783783
]}.
784784

785+
{translation, "rabbit.cluster_formation.peer_discovery_backend",
786+
fun(Conf) ->
787+
case cuttlefish:conf_get("cluster_formation.peer_discovery_backend", Conf, rabbit_peer_discovery_classic_config) of
788+
classic_config -> rabbit_peer_discovery_classic_config;
789+
classic -> rabbit_peer_discovery_classic_config;
790+
config -> rabbit_peer_discovery_classic_config;
791+
dns -> rabbit_peer_discovery_dns;
792+
aws -> rabbit_peer_discovery_aws;
793+
consul -> rabbit_peer_discovery_consul;
794+
Module -> Module
795+
end
796+
end}.
797+
785798
%% Own node type, used by cluster formation.
786799
%%
787800

0 commit comments

Comments
 (0)