The purpose of this PR is to contemplate the case in which the filebeat_wazuh_template cannot be downloaded because the link does not exist and then the execution of the script is stopped.
Tests
The source_branch variable that is defined in this execution is v4.10.0 and this carries to a link that does not exist.
root@ip-172-31-32-65:/home/ubuntu/wazuh-installation-assistant# bash wazuh-install.sh -wi node-1 -d pre-release
28/10/2024 09:54:42 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0
28/10/2024 09:54:42 INFO: Verbose logging redirected to /var/log/wazuh-install.log
28/10/2024 09:54:53 INFO: Verifying that your system meets the recommended minimum hardware requirements.
28/10/2024 09:55:04 INFO: Wazuh development repository added.
28/10/2024 09:55:04 INFO: --- Wazuh indexer ---
28/10/2024 09:55:04 INFO: Starting Wazuh indexer installation.
28/10/2024 09:55:26 INFO: Wazuh indexer installation finished.
28/10/2024 09:55:26 INFO: Wazuh indexer post-install configuration finished.
28/10/2024 09:55:26 INFO: Starting service wazuh-indexer.
28/10/2024 09:55:53 INFO: wazuh-indexer service started.
28/10/2024 09:55:53 INFO: Initializing Wazuh indexer cluster security settings.
28/10/2024 09:55:57 INFO: Wazuh indexer cluster initialized.
28/10/2024 09:55:57 INFO: Installation finished.
root@ip-172-31-32-65:/home/ubuntu/wazuh-installation-assistant# bash wazuh-install.sh --start-cluster
28/10/2024 09:56:05 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0
28/10/2024 09:56:05 INFO: Verbose logging redirected to /var/log/wazuh-install.log
28/10/2024 09:56:15 INFO: Verifying that your system meets the recommended minimum hardware requirements.
28/10/2024 09:56:21 INFO: Wazuh indexer cluster security configuration initialized.
28/10/2024 09:56:42 ERROR: The wazuh-alerts template could not be inserted into the Wazuh indexer cluster.
Related issue:
Description
The purpose of this PR is to contemplate the case in which the
filebeat_wazuh_template
cannot be downloaded because the link does not exist and then the execution of the script is stopped.Tests
The
source_branch
variable that is defined in this execution isv4.10.0
and this carries to a link that does not exist.