Open AlexRuiz7 opened 2 days ago
The packages can be built.
Check the packages are built as result of the GHA Build
workflow
$ GITHUB_TOKEN=<MY_GITHUB_TOKEN> bash ./check_package.sh 11406244332 5.0.0
Fetching artifacts list...
Checking wazuh-indexer_5.0.0-0_amd64.deb package is generated for workflow run 11406244332
Wazuh indexer package built successfully.
[ Artifact ID: 2074853568 ]
The package can be installed Download and install the package generated on the GHA workflow
$ GITHUB_TOKEN=<MY_GITHUB_TOKEN> bash ./check_installation.sh 2074853568 5.0.0
Downloading wazuh-indexer package from GitHub artifactory...
Package downloaded successfully
Decompressing wazuh-indexer package...
Archive: ./package.zip
inflating: wazuh-indexer_5.0.0-0_amd64.deb
Package decompressed
Installing wazuh-indexer package...
(Reading database ... 77544 files and directories currently installed.)
Preparing to unpack wazuh-indexer_5.0.0-0_amd64.deb ...
Running Wazuh Indexer Pre-Removal Script
Running Wazuh Indexer Pre-Installation Script
Unpacking wazuh-indexer (5.0.0-0) over (5.0.0-0) ...
Setting up wazuh-indexer (5.0.0-0) ...
Running Wazuh Indexer Post-Installation Script
### NOT starting on installation, please execute the following statements to configure wazuh-indexer service to start automatically using systemd
sudo systemctl daemon-reload
sudo systemctl enable wazuh-indexer.service
### You can start wazuh-indexer service by executing
sudo systemctl start wazuh-indexer.service
Package installed successfully.
The Wazuh Indexer service starts and runs (start, stop, restart).
Configure wazuh-indexer and deploy certificates
sudo bash ./02_apply_certificates.sh node-1 node-2 192.168.56.10
Creating a backup of the original config file...
Updating configuration...
Configuration updated successfully. Backup created at ./opensearch.yml.bak
Creating certificates directory and extracting certificates...
Moving and setting permissions for certificates...
Certificates configured successfully.
Check wazuh-indexer service
sudo bash ./03_check_service.sh
Starting wazuh-indexer service...
Synchronizing state of wazuh-indexer.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable wazuh-indexer
wazuh-indexer service is running.
Stopping wazuh-indexer service...
wazuh-indexer service stopped successfully.
Restarting wazuh-indexer service...
wazuh-indexer service is running.
Extra manual check
systemctl status wazuh-indexer
● wazuh-indexer.service - wazuh-indexer
Loaded: loaded (/lib/systemd/system/wazuh-indexer.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2024-10-19 01:43:50 UTC; 4min 27s ago
Docs: https://documentation.wazuh.com
Main PID: 9869 (java)
Tasks: 44 (limit: 2220)
Memory: 1.2G
CPU: 19.813s
CGroup: /system.slice/wazuh-indexer.service
└─9869 /usr/share/wazuh-indexer/jdk/bin/java -Xshare:auto -Dopensearch.networkaddress.cache.ttl=60 -Do>
Description
For the delivery of the MVP phase of https://github.com/wazuh/wazuh/issues/22887, we need to check that:
.commands
index on a successful HTTP POST requestTasks
For each of the sections, provide instructions and evidences of their testing.