mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
DataNode: config option to enforce single-node type (#15070)
* adds a config option to force single-node type so that (at least on macOS) the bootstrap checks won't run and fail * add changelog * reworded message
This commit is contained in:
@@ -218,6 +218,8 @@ public class Configuration extends BaseConfiguration {
|
||||
@Parameter(value = "root_email")
|
||||
private String rootEmail = "";
|
||||
|
||||
@Parameter(value = "single_node_only")
|
||||
private boolean singleNodeOnly = false;
|
||||
|
||||
public String getNodeIdFile() {
|
||||
return nodeIdFile;
|
||||
@@ -281,6 +283,10 @@ public class Configuration extends BaseConfiguration {
|
||||
return Optional.ofNullable(opensearchNetworkHostHost);
|
||||
}
|
||||
|
||||
public boolean isSingleNodeOnly() {
|
||||
return singleNodeOnly;
|
||||
}
|
||||
|
||||
public static class NodeIdFileValidator implements Validator<String> {
|
||||
@Override
|
||||
public void validate(String name, String path) throws ValidationException {
|
||||
|
||||
Reference in New Issue
Block a user