Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pre-start.sh script for Vagrant environment #479

Merged
merged 3 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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