wazuh / wazuh-installation-assistant

Wazuh - Installation assistant
https://wazuh.com/
GNU General Public License v2.0
0 stars 3 forks source link

Changes that remained pending after the migration of PRs to main #91

Closed c-bordon closed 2 weeks ago

c-bordon commented 2 weeks ago

close https://github.com/wazuh/wazuh-installation-assistant/issues/78

After comparing the files between the main branch of wazuh-installation-assistant and the master branch of wazuh-packages, I detected that some of the changes from the previous PRs had not been applied correctly. This PR fixes these errors.

Test

root@ubuntu-jammy:~# bash wazuh-install.sh -a
30/09/2024 19:02:53 INFO: Starting Wazuh installation assistant. Wazuh version: 4.9.0
30/09/2024 19:02:53 INFO: Verbose logging redirected to /var/log/wazuh-install.log
30/09/2024 19:02:53 INFO: Wazuh web interface port will be 443.
30/09/2024 19:02:57 INFO: Verifying that your system meets the recommended minimum hardware requirements.
30/09/2024 19:03:00 INFO: Wazuh repository added.
30/09/2024 19:03:00 INFO: --- Configuration files ---
30/09/2024 19:03:00 INFO: Generating configuration files.
30/09/2024 19:03:00 INFO: Generating the root certificate.
30/09/2024 19:03:00 INFO: Generating Admin certificates.
30/09/2024 19:03:00 INFO: Generating Wazuh indexer certificates.
30/09/2024 19:03:00 INFO: Generating Filebeat certificates.
30/09/2024 19:03:01 INFO: Generating Wazuh dashboard certificates.
30/09/2024 19:03:01 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
30/09/2024 19:03:01 INFO: --- Wazuh indexer ---
30/09/2024 19:03:01 INFO: Starting Wazuh indexer installation.
30/09/2024 19:03:18 INFO: Wazuh indexer installation finished.
30/09/2024 19:03:18 INFO: Wazuh indexer post-install configuration finished.
30/09/2024 19:03:18 INFO: Starting service wazuh-indexer.
30/09/2024 19:03:29 INFO: wazuh-indexer service started.
30/09/2024 19:03:29 INFO: Initializing Wazuh indexer cluster security settings.
30/09/2024 19:03:32 INFO: Wazuh indexer cluster security configuration initialized.
30/09/2024 19:03:32 INFO: Wazuh indexer cluster initialized.
30/09/2024 19:03:32 INFO: --- Wazuh server ---
30/09/2024 19:03:32 INFO: Starting the Wazuh manager installation.
30/09/2024 19:04:19 INFO: Wazuh manager installation finished.
30/09/2024 19:04:19 INFO: Wazuh manager vulnerability detection configuration finished.
30/09/2024 19:04:19 INFO: Starting service wazuh-manager.
30/09/2024 19:04:35 INFO: wazuh-manager service started.
30/09/2024 19:04:35 INFO: Checking Wazuh API connection
30/09/2024 19:04:35 INFO: Wazuh API connection successful
30/09/2024 19:04:35 INFO: Starting Filebeat installation.
30/09/2024 19:04:58 INFO: Filebeat installation finished.
30/09/2024 19:05:00 INFO: Filebeat post-install configuration finished.
30/09/2024 19:05:00 INFO: Starting service filebeat.
30/09/2024 19:05:00 INFO: filebeat service started.
30/09/2024 19:05:00 INFO: Checking Filebeat connection
30/09/2024 19:05:01 INFO: Filebeat connection successful
30/09/2024 19:05:01 INFO: --- Wazuh dashboard ---
30/09/2024 19:05:01 INFO: Starting Wazuh dashboard installation.
30/09/2024 19:05:46 INFO: Wazuh dashboard installation finished.
30/09/2024 19:05:46 INFO: Wazuh dashboard post-install configuration finished.
30/09/2024 19:05:46 INFO: Starting service wazuh-dashboard.
30/09/2024 19:05:46 INFO: wazuh-dashboard service started.
30/09/2024 19:05:47 INFO: Updating the internal users.
30/09/2024 19:05:50 INFO: A backup of the internal users has been saved in the /etc/wazuh-indexer/internalusers-backup folder.
30/09/2024 19:05:57 INFO: The filebeat.yml file has been updated to use the Filebeat Keystore username and password.
30/09/2024 19:05:58 INFO: The new password for Filebeat is 0NGeQ1SE+QAQXWf4TBE+jqxZdaBtbp*I
30/09/2024 19:06:31 INFO: The password for the wazuh user is hiJ0XV.m*rbesqYuSSf70wtz?LtNGeP0
30/09/2024 19:06:31 INFO: The password for the wazuh-wui user is Jx9K5zMkdZmpYYW3+C7cx?7gPA9NXLhF
30/09/2024 19:06:31 INFO: Initializing Wazuh dashboard web application.
30/09/2024 19:06:31 INFO: Wazuh dashboard web application not yet initialized. Waiting...
30/09/2024 19:06:47 INFO: Wazuh dashboard web application not yet initialized. Waiting...
30/09/2024 19:07:03 INFO: Wazuh dashboard web application not yet initialized. Waiting...
30/09/2024 19:07:18 INFO: Wazuh dashboard web application initialized.
30/09/2024 19:07:18 INFO: --- Summary ---
30/09/2024 19:07:18 INFO: You can access the web interface https://<wazuh-dashboard-ip>:443
    User: admin
    Password: 0NGeQ1SE+QAQXWf4TBE+jqxZdaBtbp*I
30/09/2024 19:07:18 INFO: Installation finished.