diff --git a/indexer-certs-creator/config/entrypoint.sh b/indexer-certs-creator/config/entrypoint.sh index 3ee16ba9..32414bde 100644 --- a/indexer-certs-creator/config/entrypoint.sh +++ b/indexer-certs-creator/config/entrypoint.sh @@ -17,13 +17,13 @@ CERT_TOOL_PACKAGES_DEV=$(curl --silent -I $PACKAGES_DEV_URL$CERT_TOOL | grep -E ## If cert tool exists in some bucket, download it, if not exit 1 if [ "$CERT_TOOL_PACKAGES" = "200" ]; then - curl -o $CERT_TOOL $PACKAGES_URL$CERT_TOOL - echo "Cert tool exists in Packages bucket" + curl -o $CERT_TOOL $PACKAGES_URL$CERT_TOOL -s + echo "The tool to create the certificates exists in the in Packages bucket" elif [ "$CERT_TOOL_PACKAGES_DEV" = "200" ]; then - curl -o $CERT_TOOL $PACKAGES_DEV_URL$CERT_TOOL - echo "Cert tool exists in Packages-dev bucket" + curl -o $CERT_TOOL $PACKAGES_DEV_URL$CERT_TOOL -s + echo "The tool to create the certificates exists in Packages-dev bucket" else - echo "Cert tool does not exist in any bucket" + echo "The tool to create the certificates does not exist in any bucket" echo "ERROR: certificates were not created" exit 1 fi @@ -41,9 +41,9 @@ source /$CERT_TOOL -A nodes_server=$( cert_parseYaml /config.yml | grep nodes_server__name | sed 's/nodes_server__name=//' ) node_names=($nodes_server) -echo "Moving created certificates to destination directory" +echo "Moving created certificates to the destination directory" cp /wazuh-certificates/* /certificates/ -echo "changing certificate permissions" +echo "Changing certificate permissions" chmod -R 500 /certificates chmod -R 400 /certificates/* echo "Setting UID indexer and dashboard" diff --git a/multi-node/config/wazuh_cluster/wazuh_manager.conf b/multi-node/config/wazuh_cluster/wazuh_manager.conf index aec223a1..de889f89 100644 --- a/multi-node/config/wazuh_cluster/wazuh_manager.conf +++ b/multi-node/config/wazuh_cluster/wazuh_manager.conf @@ -153,7 +153,6 @@ yes - 2010 1h diff --git a/multi-node/config/wazuh_cluster/wazuh_worker.conf b/multi-node/config/wazuh_cluster/wazuh_worker.conf index 46fceb1e..16cd29bb 100644 --- a/multi-node/config/wazuh_cluster/wazuh_worker.conf +++ b/multi-node/config/wazuh_cluster/wazuh_worker.conf @@ -153,7 +153,6 @@ yes - 2010 1h diff --git a/multi-node/docker-compose.yml b/multi-node/docker-compose.yml index c13dae57..8e53016f 100644 --- a/multi-node/docker-compose.yml +++ b/multi-node/docker-compose.yml @@ -6,6 +6,13 @@ services: image: wazuh/wazuh-manager:4.5.2 hostname: wazuh.master restart: always + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 655360 + hard: 655360 ports: - "1515:1515" - "514:514/udp" @@ -41,6 +48,13 @@ services: image: wazuh/wazuh-manager:4.5.2 hostname: wazuh.worker restart: always + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 655360 + hard: 655360 environment: - INDEXER_URL=https://wazuh1.indexer:9200 - INDEXER_USERNAME=admin diff --git a/single-node/config/wazuh_cluster/wazuh_manager.conf b/single-node/config/wazuh_cluster/wazuh_manager.conf index 4db508d6..d71a44ab 100644 --- a/single-node/config/wazuh_cluster/wazuh_manager.conf +++ b/single-node/config/wazuh_cluster/wazuh_manager.conf @@ -153,7 +153,6 @@ yes - 2010 1h diff --git a/single-node/docker-compose.yml b/single-node/docker-compose.yml index 3c4a2d8b..eeeccce9 100644 --- a/single-node/docker-compose.yml +++ b/single-node/docker-compose.yml @@ -6,6 +6,13 @@ services: image: wazuh/wazuh-manager:4.5.2 hostname: wazuh.manager restart: always + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 655360 + hard: 655360 ports: - "1514:1514" - "1515:1515"