mirror of
https://github.com/wazuh/wazuh-indexer-plugins.git
synced 2025-12-10 14:32:28 -06:00
1.3 KiB
1.3 KiB
Testing environment
This is an environment definition with the required configuration to be prepared to freshly install a Wazuh Indexer cluster with two nodes using Vagrant and Libvirt to provision the Virtual Machines.
It also generates the node's required certificates using the wazuh-certs-tool and copy them to each node's /home
directory, leaving a copy in test-cluster/.
Prerequisites
- Download and install Vagrant (source)
- Install vagrant-libvirt (source)
In some cases you must also install
libvirt-dev
Usage
- Navigate to the environment's root directory
cd tools/test-cluster - Initialize the environment
vagrant up - Connect to the different systems
vagrant ssh indexer_[1|2]
Test scripts
Some scripts are included to easily validate the correct basic functionality of a wazuh-indexer package, these are also being copied in the node's /home/scripts directory. More info at scripts/README.md
Cleanup
After the testing session is complete you can stop or destroy the environment as you wish:
- Stop the environment:
vagrant halt - Destroy the environment:
vagrant destroy -f