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

Add wazuh-dashboard custom packages support #827

Merged
merged 1 commit into from
Aug 2, 2022

Conversation

roronoasins
Copy link

@roronoasins roronoasins commented Jul 27, 2022

Related issue
close #824

Description

As part of E2E testing integration, we need to allow the use of custom packages for the indexer and dashboard.

Changes

  • Added task for dashboard custom packages

New flags

Adding the following vars within a host in your inventory, you can install a custom indexer package:

  • wazuh_custom_packages_installation_dashboard_enabled: Boolean that allows us to use custom packages
  • wazuh_custom_packages_installation_dashboard_deb_url: Dashboard deb url
  • wazuh_custom_packages_installation_dashboard_rpm_url: Dashboard rpm url

Checks

environment used with the Deployer
  • manager
  • 2 indexer nodes
  • dashboard
  • agent
- service: EC2
  instances:
    - ubuntu
  resources:
    - cpu: 2
      memory: 2048

- service: EC2
  instances:
    - ubuntu
    - centos
    - amazonlinux
  resources:
    - cpu: 4
      memory: 4096
    - cpu: 4
      memory: 4096
    - cpu: 4
      memory: 4096

- service: EC2
  instances:
    - ubuntu
inventory
wi_cluster:
  hosts:
    wi1:
      ansible_host: 172.31.11.66
      ansible_user: qa
      ansible_connection: ssh
      private_ip: 172.31.11.66
    wi2:
      ansible_host: 172.31.5.32
      ansible_user: qa
      ansible_connection: ssh
      private_ip: 172.31.5.32
    dashboard:
      ansible_host: 172.31.4.224
      ansible_user: qa
      ansible_connection: ssh
      private_ip: 172.31.4.224
      dashboard_node_name: "node-3"
  vars:
      wazuh_custom_packages_installation_indexer_enabled: yes
      wazuh_custom_packages_installation_indexer_deb_url: https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-indexer/wazuh-indexer_4.3.5-1_amd64.deb
      wazuh_custom_packages_installation_indexer_rpm_url: https://packages.wazuh.com/4.x/yum/wazuh-indexer-4.3.5-1.x86_64.rpm
      wazuh_custom_packages_installation_dashboard_enabled: yes
      wazuh_custom_packages_installation_dashboard_rpm_url: https://packages.wazuh.com/4.x/yum/wazuh-dashboard-4.3.5-1.x86_64.rpm
      indexer_network_host: 172.31.11.66
      indexer_discovery_nodes:
          - 172.31.11.66
          - 172.31.5.32
      indexer_cluster_nodes:
          - 172.31.11.66
          - 172.31.5.32
      instances:
          node1:
            name: node-1      
            ip: 172.31.11.66
            role: indexer
          node2:
            name: node-2
            ip: 172.31.5.32
            role: indexer
          node3:
            name: node-3
            ip: 172.31.4.224
            role: dashboard
          node4:
            name: node-4
            ip: 172.31.13.86
            role: wazuh
            node_type: master
          node5:
            name: node-5
            ip: 172.31.0.112
            role: wazuh
            node_type: worker
manager:
  hosts:
    master:
      ansible_host: 172.31.13.86
      ansible_user: qa
      ansible_connection: ssh
      private_ip: 172.31.13.86
      wazuh_manager_config:
        cluster:
          disable: 'no'
          node_name: 'master'
          node_type: 'master'
          key: 'c98b62a9b6169ac5f67dae55ae4a9088'
          nodes:
              - 172.31.13.86
          hidden: 'no'
    worker1:
      ansible_host: 172.31.0.112
      ansible_user: qa
      ansible_connection: ssh
      private_ip:  172.31.0.112
      wazuh_manager_config:
        cluster:
          disable: 'no'
          node_name:  "worker1"
          node_type: 'worker'
          key: 'c98b62a9b6169ac5f67dae55ae4a9088'
          nodes:
              - 172.31.13.86
          hidden: 'no'
  vars:
    wazuh_custom_packages_installation_manager_enabled: yes
    wazuh_custom_packages_installation_manager_deb_url: https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-manager/wazuh-manager_4.3.5-1_amd64.deb
filebeat:
  hosts:
    filebeat1:
          ansible_host: 172.31.11.66
          ansible_user: qa
          ansible_connection: ssh
          filebeat_node_name: node-4
    filebeat2:
          ansible_host: 172.31.0.112
          ansible_user: qa
          ansible_connection: ssh
          filebeat_node_name: node-5
  vars:
    filebeat_output_indexer_hosts:
        - 172.31.11.66
        - 172.31.5.32
all:
  vars:
    ansible_ssh_common_args: -o StrictHostKeyChecking=no

Build - 🟢

@roronoasins roronoasins added qa QA qa-thunder QA support: Vulnerability detector, Wazuh DB, Integrator, Log rotation, Labels, Office 365 labels Jul 27, 2022
@roronoasins roronoasins requested a review from Rebits July 27, 2022 10:44
@roronoasins roronoasins self-assigned this Jul 27, 2022
@roronoasins roronoasins linked an issue Jul 27, 2022 that may be closed by this pull request
Copy link
Member

@Rebits Rebits left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Rebits Rebits merged commit 04df315 into 2796-provisioning-tool-4.4 Aug 2, 2022
@Rebits Rebits deleted the 824-add-dashboard-custom-pkgs branch August 2, 2022 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
qa QA qa-thunder QA support: Vulnerability detector, Wazuh DB, Integrator, Log rotation, Labels, Office 365
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom Wazuh dashboard package support
2 participants