The Wazuh installation Assistant is a tool designed to simplify the deployment of Wazuh. It guides users through the process of installing Wazuh components. Key features include:
- Guided Installation: Step-by-step instructions for easy setup.
- Component Selection: Install only the Wazuh components you need.
- System Requirements Check: Automatically checks if your system meets the necessary requirements.
- Automated Configuration: Reduces errors by automating most of the setup.
- Multi-Platform Support: Runs on Red Hat Enterprise Linux 9 and 10, Amazon Linux 2023, and Ubuntu 24.04 and 26.04. See Compatibility.
The Wazuh installation assistant uses the following tools to enhance security during the installation process:
- Wazuh passwords tool: Securely generate and manage passwords. Learn more.
- Wazuh cert tool: Manage SSL/TLS certificates for secure communications. Learn more.
The published scripts include the version in their file names:
- Download the Wazuh installation assistant.
- Download the Wazuh passwords tool.
- Download the Wazuh cert tool.
For example:
curl -fsSO https://packages.wazuh.com/production/5.x/installation-assistant/wazuh-install-5.0.1.shSee Installation for the download commands of each tool, including the pre-release ones.
As an alternative to downloading, use the builder.sh script to build the Wazuh installation assistant and tools. The scripts it builds have no version in their file names:
-
Build the Wazuh installation assistant -
wazuh-install.sh:bash builder.sh -i
-
Build the Wazuh passwords tool -
wazuh-passwords-tool.sh:bash builder.sh -p
-
Build the Wazuh cert tool -
wazuh-certs-tool.sh:bash builder.sh -c
The commands below use the downloaded wazuh-install-5.0.1.sh. A script built with builder.sh is named wazuh-install.sh.
For a distributed deployment, start by downloading the configuration file as config.yml, next to the script, and replace the node names and IP values with the corresponding ones:
curl -fsS -o config.yml https://packages.wazuh.com/production/5.x/installation-assistant/config-5.0.1.ymlFor DNS-based or mixed address configurations, see Other config.yml examples.
Note
It is not necessary to download the Wazuh passwords tool and the Wazuh cert tool to use the Wazuh installation assistant. The Wazuh installation assistant has embedded the previous tools.
-
Generate the passwords and certificates. Needs the
config.ymlconfiguration file.bash wazuh-install-5.0.1.sh -g
-
Install all central components on the local machine:
bash wazuh-install-5.0.1.sh -a
-
Uninstall all central components:
bash wazuh-install-5.0.1.sh -u
-
Install the Wazuh indexer specifying the same name as specified in the configuration file:
bash wazuh-install-5.0.1.sh --wazuh-indexer <NODE_NAME>
-
Initialize the Wazuh indexer cluster:
bash wazuh-install-5.0.1.sh --start-cluster
-
Install the Wazuh manager specifying the same name as specified in the configuration file:
bash wazuh-install-5.0.1.sh --wazuh-manager <NODE_NAME>
-
Install the Wazuh dashboard specifying the same name as specified in the configuration file:
bash wazuh-install-5.0.1.sh --wazuh-dashboard <NODE_NAME>
-
Display all options and help:
bash wazuh-install-5.0.1.sh -h
All the options for the Wazuh installation assistant are listed in the following table:
| Option | Description |
|---|---|
-a, --all-in-one |
Install and configure Wazuh manager, Wazuh indexer, Wazuh dashboard. |
-as, --agent-san <ip|dns> |
Add an extra address to the subject alternative name of the agent listener certificate of every Wazuh manager node. Repeat it for more than one. This option must be used with -a or -g. |
-ap, --api-san <ip|dns> |
Add an extra address to the subject alternative name of the Server API certificate of every Wazuh manager node. Repeat it for more than one. With -a, the Server API also listens on all network interfaces instead of only on the local host. This option must be used with -a or -g. |
-d [pre-release|local], --development |
Use development repositories. By default it uses the pre-release package repository. If local is specified, it uses a local artifact_urls.yaml file located in the same directory as the script. |
--skip-signature-check |
Install packages that are not signed with the Wazuh key. Only for development packages, must be used with -d. |
-dw, --download-wazuh <deb|rpm> |
Download all the packages necessary for offline installation. Specify the type of packages to download for offline installation (rpm, deb). |
-da, --download-arch <amd64|arm64|x86_64|aarch64> |
Define the architecture of the packages to download for offline installation. |
-g, --generate-config-files |
Generate wazuh-install-files.tar file containing the files needed for installation from config.yml. In distributed deployments, you will need to copy this file to all hosts. |
-h, --help |
Display this help and exit. |
-id, --install-dependencies |
Install automatically the necessary dependencies for the installation. |
-o, --overwrite |
Overwrite previously installed components. This will erase all the existing configuration and data. |
-of, --offline-installation |
Perform an offline installation. This option must be used with -a, -wm, -s, -wi, or -wd. |
-s, --start-cluster |
Initialize Wazuh indexer cluster security settings. |
-u, --uninstall |
Uninstall all Wazuh components. This will erase all the existing configuration and data. |
-v, --verbose |
Show the complete installation output. |
-V, --version |
Show the version of the script and Wazuh packages. |
-wd, --wazuh-dashboard <dashboard-node-name> |
Install and configure Wazuh dashboard, used for distributed deployments. |
-wi, --wazuh-indexer <indexer-node-name> |
Install and configure Wazuh indexer, used for distributed deployments. |
-wm, --wazuh-manager <manager-node-name> |
Install and configure Wazuh manager, used for distributed deployments. |
The options of the Wazuh cert tool and the Wazuh passwords tool are in Command line options.
If you want to contribute to our repository, please fork our GitHub repository and submit a pull request. Alternatively, you can share ideas through our users' mailing list.
To ensure consistency in development, please follow these guidelines:
- Write functions with a single objective and limited arguments.
- Use libraries selectively (e.g.,
install_functions). - Main functions should not depend on specific implementations.
- Use descriptive names for variables and functions.
- Use
${var}instead of$(var)and$(command)instead of backticks. - Always quote variables:
"${var}". - Use the
common_loggerfunction instead ofecho. - Check command results with
$?orPIPESTATUS. - Use timeouts for long commands.
- Ensure all necessary resources are available both online and offline.
- Check command existence with
command -v. - Parametrize all package versions.
- Use
| grep -qinstead of| grep. - Use standard
$((..))instead of old$[].
Tip
Additional check: Run unit tests before preparing a pull request.
Some useful links and acknowledgment:
For more detailed instructions and advanced use cases, please refer to the documentation in this repository: the usage reference and the deployment guides.
Wazuh Copyright (C) Wazuh Inc. (License GPLv2)