Fede Galland 17844d057e
Restructuring of the repository tooling (#625)
* Move scripts and test-tools to tools/

* Update CHANGELOG.md
2025-10-30 16:47:28 +01:00

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

  1. Download and install Vagrant (source)
  2. Install vagrant-libvirt (source)

    In some cases you must also install libvirt-dev

Usage

  1. Navigate to the environment's root directory
    cd tools/test-cluster
    
  2. Initialize the environment
    vagrant up
    
  3. 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