From 7918036b8bd8e9c5e42d5a3ff89df728faffeb37 Mon Sep 17 00:00:00 2001 From: Kevin Ledesma Date: Mon, 21 Oct 2024 06:49:22 -0300 Subject: [PATCH] Fix pre-start.sh script for Vagrant environment (#479) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix openssl error at generating wazuh credentials * Remove installation of unused sspass package * Reduce RAM to 4 GB per node --------- Co-authored-by: Álex Ruiz --- test-tools/Vagrantfile | 5 ++--- test-tools/pre-start.sh | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/test-tools/Vagrantfile b/test-tools/Vagrantfile index dbbeb02976274..54cafae781ed1 100644 --- a/test-tools/Vagrantfile +++ b/test-tools/Vagrantfile @@ -12,7 +12,7 @@ Vagrant.configure("2") do |config| indexer_1.vm.network "private_network", ip: "192.168.56.10" indexer_1.vm.hostname = "node-1" indexer_1.vm.provider "libvirt" do |vb| - vb.memory = "6144" + vb.memory = "4096" vb.cpus = "4" end indexer_1.vm.provision "shell", inline: <<-SHELL @@ -31,13 +31,12 @@ Vagrant.configure("2") do |config| indexer_2.vm.network "private_network", ip: "192.168.56.11" indexer_2.vm.hostname = "node-2" indexer_2.vm.provider "libvirt" do |vb| - vb.memory = "6144" + vb.memory = "4096" vb.cpus = "4" end indexer_2.vm.provision "shell", inline: <<-SHELL sudo systemctl stop ufw sudo systemctl disable ufw - sudo apt install sshpass -y # Add node-1 to /etc/hosts echo "192.168.56.10 node-1" >> /etc/hosts # Copy generated certificates diff --git a/test-tools/pre-start.sh b/test-tools/pre-start.sh index ab8142d32f25d..e0e1d4b7ac251 100644 --- a/test-tools/pre-start.sh +++ b/test-tools/pre-start.sh @@ -12,7 +12,7 @@ curl -sO https://packages.wazuh.com/4.9/wazuh-certs-tool.sh chmod +x ./wazuh-certs-tool.sh # Run the Wazuh certs tool -bash ./wazuh-certs-tool.sh -A +OPENSSL_CONF="/etc/ssl/openssl.cnf" ./wazuh-certs-tool.sh -A # Create a tarball of the generated certificates tar -cvf ./wazuh-certificates.tar -C ./wazuh-certificates/ .