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 ISM script in installation assistant #2584

Merged
merged 6 commits into from
Nov 9, 2023

Conversation

c-bordon
Copy link
Member

@c-bordon c-bordon commented Nov 8, 2023

Related issue
closes https://github.com/wazuh/internal-devel-requests/issues/425

Description

The execution of the indexer-ism-init.sh script is added to AIO installations and distributed to the installation assistant.

Logs example

AIO: https://github.com/wazuh/internal-devel-requests/issues/425#issuecomment-1799521457
Distributed: https://github.com/wazuh/internal-devel-requests/issues/425#issuecomment-1801788574

Tests

  • Build the package in any supported platform
    • Linux
    • Windows
    • macOS
    • Solaris
    • AIX
    • HP-UX
  • Package installation
  • Package upgrade
  • Package downgrade
  • Package remove
  • Package install/remove/install
  • Change added to CHANGELOG.md
  • Tests for Linux RPM
    • Build the package for x86_64
    • Build the package for i386
    • Build the package for armhf
    • Build the package for aarch64
    • %files section is correctly updated if necessary
  • Tests for Linux deb
    • Build the package for x86_64
    • Build the package for i386
    • Build the package for armhf
    • Build the package for aarch64
    • Package install/remove/install
    • Package install/purge/install
    • Check file permissions after installing the package
  • Tests for macOS
    • Test the package from macOS Sierra to Mojave
  • Tests for Solaris
    • Test the package on Solaris 10
    • Test the package on Solaris 11
    • Check file permissions on Solaris 11 template
  • Tests for IBM AIX
    • %files section is correctly updated if necessary
    • Check the changes from IBM AIX 5 to 7

@c-bordon c-bordon self-assigned this Nov 8, 2023
vcerenu
vcerenu previously approved these changes Nov 8, 2023
davidcr01
davidcr01 previously approved these changes Nov 8, 2023
@AlexRuiz7 AlexRuiz7 changed the title added ISM script in installation assistant Add ISM script in installation assistant Nov 8, 2023
AlexRuiz7
AlexRuiz7 previously approved these changes Nov 8, 2023
Copy link
Member

@AlexRuiz7 AlexRuiz7 left a comment

Choose a reason for hiding this comment

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

LGTM

@c-bordon c-bordon dismissed stale reviews from AlexRuiz7, davidcr01, and vcerenu via d5206a6 November 8, 2023 17:49
@c-bordon
Copy link
Member Author

c-bordon commented Nov 9, 2023

AIO Test with ISM error:

root@ubuntu20:~/wazuh-packages/unattended_installer# bash wazuh-install.sh -a
09/11/2023 15:44:06 INFO: Starting Wazuh installation assistant. Wazuh version: 4.8.0
09/11/2023 15:44:06 INFO: Verbose logging redirected to /var/log/wazuh-install.log
09/11/2023 15:44:28 INFO: Verifying that your system meets the recommended minimum hardware requirements.
09/11/2023 15:44:28 INFO: Wazuh web interface port will be 443.
09/11/2023 15:44:31 INFO: --- Dependencies ----
09/11/2023 15:44:31 INFO: Installing apt-transport-https.
09/11/2023 15:44:41 INFO: Wazuh development repository added.
09/11/2023 15:44:41 INFO: --- Configuration files ---
09/11/2023 15:44:41 INFO: Generating configuration files.
09/11/2023 15:44:42 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
09/11/2023 15:44:42 INFO: --- Wazuh indexer ---
09/11/2023 15:44:42 INFO: Starting Wazuh indexer installation.
09/11/2023 15:46:41 INFO: Wazuh indexer installation finished.
09/11/2023 15:46:41 INFO: Wazuh indexer post-install configuration finished.
09/11/2023 15:46:41 INFO: Starting service wazuh-indexer.
09/11/2023 15:46:52 INFO: wazuh-indexer service started.
09/11/2023 15:46:52 INFO: Initializing Wazuh indexer cluster security settings.
09/11/2023 15:47:04 WARNING: The Wazuh indexer cluster ISM policy could not be created.
09/11/2023 15:47:04 INFO: Wazuh indexer cluster initialized.
09/11/2023 15:47:04 INFO: --- Wazuh server ---
09/11/2023 15:47:04 INFO: Starting the Wazuh manager installation.
09/11/2023 15:48:08 INFO: Wazuh manager installation finished.
09/11/2023 15:48:08 INFO: Starting service wazuh-manager.
09/11/2023 15:48:23 INFO: wazuh-manager service started.
09/11/2023 15:48:23 INFO: Starting Filebeat installation.
09/11/2023 15:48:34 INFO: Filebeat installation finished.
09/11/2023 15:48:36 INFO: Filebeat post-install configuration finished.
09/11/2023 15:48:36 INFO: Starting service filebeat.
09/11/2023 15:48:37 INFO: filebeat service started.
09/11/2023 15:48:37 INFO: --- Wazuh dashboard ---
09/11/2023 15:48:38 INFO: Installing chrome.
09/11/2023 15:50:00 INFO: --- Dependencies ----
09/11/2023 15:50:00 INFO: Installing libnss3-dev.
09/11/2023 15:50:08 INFO: Starting Wazuh dashboard installation.
09/11/2023 15:50:58 INFO: Wazuh dashboard installation finished.
09/11/2023 15:50:58 INFO: Wazuh dashboard post-install configuration finished.
09/11/2023 15:50:58 INFO: Starting service wazuh-dashboard.
09/11/2023 15:50:59 INFO: wazuh-dashboard service started.
09/11/2023 15:51:01 INFO: Updating the internal users.
09/11/2023 15:51:04 INFO: A backup of the internal users has been saved in the /etc/wazuh-indexer/internalusers-backup folder.
09/11/2023 15:52:16 INFO: Initializing Wazuh dashboard web application.
09/11/2023 15:52:16 INFO: Wazuh dashboard web application initialized.
09/11/2023 15:52:16 INFO: --- Summary ---
09/11/2023 15:52:16 INFO: You can access the web interface https://<wazuh-dashboard-ip>:443
    User: admin
    Password: 9ijWJJ8gPqYSsPOnf4RNeUtzlWMl*Pat
09/11/2023 15:52:16 INFO: Installation finished.

@c-bordon c-bordon merged commit 9fa6f51 into 4.8.0 Nov 9, 2023
@c-bordon c-bordon deleted the change/updateUnattendedWithISMscript-to4.8.0 branch November 9, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants