Skip to content

Commit

Permalink
Fix pre-start.sh script for Vagrant environment (#479)
Browse files Browse the repository at this point in the history
* 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 <alejandro.ruiz.becerra@wazuh.com>
  • Loading branch information
QU3B1M and AlexRuiz7 authored Oct 21, 2024
1 parent e6b3128 commit 4a91008
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions test-tools/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test-tools/pre-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/ .
Expand Down

0 comments on commit 4a91008

Please sign in to comment.