wazuh-dashboard-plugins
wazuh-dashboard-plugins copied to clipboard
Update agent installation command for all agents
Describe the solution you'd like
We need to revise all agents command. For example, debian does not come with curl
installed by default, we need to change it to use wget
instead, as this command comes by default.
For example:
wget https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_4.3.3-1_amd64.deb -O wazuh-agent-4.3.3.deb && sudo WAZUH_MANAGER='pvcga636385p.cloud.wazuh.com' WAZUH_REGISTRATION_PASSWORD='F7y8JwV9XOq8NiqY1WPeoIqqoT8nxZtx' WAZUH_AGENT_GROUP='default' dpkg -i ./wazuh-agent-4.3.3.deb
@wazuh/cicd team will devise the exact command we need to tell the user in the agent installation wizard, and @wazuh/frontend will update the UI to reflect the changes appropriately.
Related issues:
- #4178
Research made here -> https://github.com/wazuh/wazuh-packages/issues/1625
We have added new entries to the selectors of:
- Operating systems
- Versions
- Architectures
- Commands of Install and enroll the agent y
- Commands to Start the agent
This issue is being resolved together with this other issue https://github.com/wazuh/wazuh-kibana-app/issues/4178 in the same PR.
This issue is blocked by https://github.com/wazuh/wazuh-documentation/issues/5561 as we need to link the additional installation steps for agents being installed in EOL operating systems.
Steps to test: *Go to the Agents tab *Click on the 'Deploy new agent' button *Check that all the exposed data are those that appear in the following issue
This is how the 'Deploy a new agent' section looks like now, while the issue is still blocked by https://github.com/wazuh/wazuh-documentation/issues/5561.
https://user-images.githubusercontent.com/99441266/189145948-4605c982-6fcc-4756-bfae-b05b47b3aed4.mp4
With the updated information that @okynos sent me yesterday, this is how ui looks today:
Based on this information I must update versions, architecture and commands for each OS distribution
Updated information: For C7 we support ARMV7HL(ARMHF), AARCH64, I386, X86_64 and PPC64LE and the command is the same in all of them (The system and package manager is the same). For D9+ we support the same architectures as C7 and the command is the same (the same system and package manager). For OpenSuse we support the same architectures as the RPM package needs and is built and provided. AL2,Fedora,OL, RHEL, SUSE.... all of them use RPM and use the same commands as C7. For Raspbian OS we support the same as a Debian 9/10 fork.
https://user-images.githubusercontent.com/99441266/189947396-4652d1f4-c0d5-4567-9add-e0688aa17962.mp4
Today, @okynos updated me on the information:
Based on this information I must update versions, architecture and commands for each OS distribution
Amazon Linux 1 is a fork (Derivative) of CentOS 6 Amazon Linux 2 is a fork of CentOS 7 Amazon Linux 2022 is something like RHEL 9 RedHat and Oracle linux are practically the same as CentOS RedHat 6 is like CentOS 6 Oracle Linux 6 are the same as CentOS 6
This is what the 'Deploy new agent' section looks like.
https://user-images.githubusercontent.com/99441266/194108984-9bdf8c60-589d-4f6b-9e91-131db1bc9ebb.mp4
Today a small message has been added with a link to documentation for AIX, HP-UX and Solaris OS. This is how it looks like:
https://user-images.githubusercontent.com/99441266/194386947-999a35fb-9fba-4dd0-ab5a-9751e008802c.mp4
Added links for these OS:
AIX 6.1 TL9+ HP-UX 11.31+ Solaris 10u11 SPARC Solaris 11.3+ SPARC CentOS 5.11 (We don't have a link to centos5 documentation, I consulted content and they told me they are still deciding.) Debian 7+
and removed messages and links for these:
CentOS 5 and 6 RedHat 5 and 6 Debian 7, 8 and 9 ubuntu 14 Windows XP, Vista, 2008, 7