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

Vagrantfile for testing purposes #459

Closed
AlexRuiz7 opened this issue Oct 15, 2024 · 2 comments · Fixed by #474 or #479
Closed

Vagrantfile for testing purposes #459

AlexRuiz7 opened this issue Oct 15, 2024 · 2 comments · Fixed by #474 or #479
Assignees
Labels
level/task Task issue request/operational Operational requests type/enhancement Enhancement issue

Comments

@AlexRuiz7
Copy link
Member

Description

We are close to reach the MVP validation stage for the upcoming release 5.0.0. In this release, we include 3 new plugins to wazuh-indexer: wazuh-indexer-setup, wazuh-indexer-command-manager and wazuh-indexer-reports-scheduler.

In order to tests these plugins work as expected under a build of Wazuh Indexer, we need to develop a testing environment that fit our needs. This issue aims to develop a Vagrantfile that prepares this environment in a reusable manner.

Our testing environment will consist of 2x Wazuh Indexer nodes forming a cluster. The installation of the Wazuh Indexer package itself will be performed manually, as the packages need to be generated beforehand using our regular packaging building process. The Vagrant environment will prepare the required infrastructure to set up the cluster, including:

  • Static IP binding
  • Installation of the operating system.
  • Certificates generation.

Implementation restrictions

  • One of the nodes runs under Ubuntu 22.04.
  • One of the nodes runs under RHEL 9.
  • The environment runs under libvirt virtualization API.
  • The firewall is disabled on both nodes.
  • The nodes use static IP binding as defined below.
nodes:
  # Wazuh indexer nodes
  indexer:
    - name: node-1
      ip: "192.168.56.10"
    - name: node-2
      ip: "192.168.56.11"
    #- name: node-3
    #  ip: "<indexer-node-ip>"

  # Wazuh server nodes
  # If there is more than one Wazuh server
  # node, each one must have a node_type
  # server:
    #- name: wazuh-1
    # ip: "<wazuh-manager-ip>"
    #  node_type: master

  # Wazuh dashboard nodes
  # dashboard:
    #- name: dashboard
    #  ip: "<dashboard-node-ip>"
@AlexRuiz7 AlexRuiz7 added level/task Task issue request/operational Operational requests type/enhancement Enhancement issue labels Oct 15, 2024
@wazuhci wazuhci moved this to Backlog in Release 5.0.0 Oct 15, 2024
@wazuhci wazuhci moved this from Backlog to In progress in Release 5.0.0 Oct 17, 2024
@QU3B1M
Copy link
Member

QU3B1M commented Oct 17, 2024

Vagrantfile with config defined and certificates generation created, currently the solution is under testing.

@QU3B1M QU3B1M linked a pull request Oct 17, 2024 that will close this issue
3 tasks
@wazuhci wazuhci moved this from In progress to Pending review in Release 5.0.0 Oct 17, 2024
@wazuhci wazuhci moved this from Pending review to In progress in Release 5.0.0 Oct 18, 2024
@QU3B1M
Copy link
Member

QU3B1M commented Oct 18, 2024

Due to the libvirt limitations at using the shared folders, we detected an error at provisioning when trying to copy the generated certificates from the indexer_1 system to the indexer_2, I've made a workaround by adding a pre-start.sh script that generates the certificates locally and copies them to the corresponding systems.

@wazuhci wazuhci moved this from In progress to Pending review in Release 5.0.0 Oct 18, 2024
@wazuhci wazuhci moved this from Pending review to Done in Release 5.0.0 Oct 18, 2024
@QU3B1M QU3B1M reopened this Oct 18, 2024
@wazuhci wazuhci moved this from Done to In progress in Release 5.0.0 Oct 18, 2024
@wazuhci wazuhci moved this from In progress to Pending review in Release 5.0.0 Oct 18, 2024
@wazuhci wazuhci moved this from Pending review to Done in Release 5.0.0 Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue request/operational Operational requests type/enhancement Enhancement issue
Projects
Status: Done
3 participants