1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
%% This Source Code Form is subject to the terms of the Mozilla Public
%% License, v. 2.0. If a copy of the MPL was not distributed with this
%% file, You can obtain one at https://mozilla.org/MPL/2.0/.
%%
%% Copyright (c) 2007-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. All rights reserved.
%%
%% interval
{mapping, "cluster_formation.node_cleanup.interval", "rabbit.cluster_formation.node_cleanup.cleanup_interval", [
{datatype, integer}, {validators, ["non_negative_integer"]}
]}.
{translation, "rabbit.cluster_formation.node_cleanup.cleanup_interval",
fun(Conf) ->
case cuttlefish:conf_get("cluster_formation.node_cleanup.interval", Conf, undefined) of
undefined -> cuttlefish:unset();
Value -> Value
end
end}.
%% only log warnings?
{mapping, "cluster_formation.node_cleanup.only_log_warning", "rabbit.cluster_formation.node_cleanup.cleanup_only_log_warning", [
{datatype, {enum, [true, false]}}
]}.
{translation, "rabbit.cluster_formation.node_cleanup.cleanup_only_log_warning",
fun(Conf) ->
case cuttlefish:conf_get("cluster_formation.node_cleanup.only_log_warning", Conf, undefined) of
undefined -> cuttlefish:unset();
Value -> Value
end
end}.
%% HTTP proxy host
{mapping, "cluster_formation.proxy.http_proxy", "rabbit.cluster_formation.proxy.http_proxy", [
{datatype, string}
]}.
{translation, "rabbit.cluster_formation.proxy.http_proxy",
fun(Conf) ->
case cuttlefish:conf_get("cluster_formation.proxy.http_proxy", Conf, undefined) of
undefined -> cuttlefish:unset();
Value -> Value
end
end}.
%% HTTPS proxy host
{mapping, "cluster_formation.proxy.https_proxy", "rabbit.cluster_formation.proxy.https_proxy", [
{datatype, string}
]}.
{translation, "rabbit.cluster_formation.proxy.https_proxy",
fun(Conf) ->
case cuttlefish:conf_get("cluster_formation.proxy.https_proxy", Conf, undefined) of
undefined -> cuttlefish:unset();
Value -> Value
end
end}.
%% Proxy exclusion list
{mapping, "cluster_formation.proxy.proxy_exclusions.$name", "rabbit.cluster_formation.proxy.proxy_exclusions",
[{datatype, string}]}.
{translation, "rabbit.cluster_formation.proxy.proxy_exclusions",
fun(Conf) ->
Settings = cuttlefish_variable:filter_by_prefix("cluster_formation.proxy.proxy_exclusions", Conf),
[ V || {_, V} <- Settings ]
end}.
|