2 opensearchTest = extraSettings:
3 import ./make-test-python.nix (
6 meta.maintainers = with pkgs.lib.maintainers; [ shyim ];
8 nodes.machine = lib.mkMerge [
10 virtualisation.memorySize = 2048;
11 services.opensearch.enable = true;
18 machine.wait_for_unit("opensearch.service")
19 machine.wait_for_open_port(9200)
22 "curl --fail localhost:9200"
28 opensearch = opensearchTest {};
29 opensearchCustomPathAndUser = opensearchTest {
30 services.opensearch.dataDir = "/var/opensearch_test";
31 services.opensearch.user = "open_search";
32 services.opensearch.group = "open_search";
33 systemd.tmpfiles.rules = [
34 "d /var/opensearch_test 0700 open_search open_search -"
37 groups.open_search = { };
39 description = "OpenSearch daemon user";
40 group = "open_search";