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

Update agent installation command for all agents #4204

Closed
Tracked by #4205
gdiazlo opened this issue Jun 5, 2022 · 9 comments · Fixed by #4647, #4867, #4876, #4878 or #4880
Closed
Tracked by #4205

Update agent installation command for all agents #4204

gdiazlo opened this issue Jun 5, 2022 · 9 comments · Fixed by #4647, #4867, #4876, #4878 or #4880
Assignees
Labels
type/enhancement Enhancement issue

Comments

@gdiazlo
Copy link
Member

gdiazlo commented Jun 5, 2022

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:

@gdiazlo gdiazlo added the type/enhancement Enhancement issue label Jun 5, 2022
@gdiazlo gdiazlo changed the title Update agent installation command for debian agents Update agent installation command for all agents Jun 5, 2022
@gdiazlo gdiazlo moved this to Todo in Release 4.4.0 Jun 5, 2022
@gdiazlo gdiazlo moved this from Todo to Triage in Release 4.4.0 Jun 5, 2022
@snaow snaow moved this from Triage to Todo in Release 4.4.0 Jun 8, 2022
@snaow snaow moved this from Todo to Triage in Release 4.4.0 Jun 13, 2022
@okynos okynos moved this from Triage to Todo in Release 4.4.0 Jul 22, 2022
@vikman90 vikman90 added this to the Release 4.4.0 milestone Aug 31, 2022
@okynos
Copy link

okynos commented Sep 1, 2022

Research made here -> wazuh/wazuh-packages#1625

@chantal-kelm chantal-kelm moved this from Todo to In Progress in Release 4.4.0 Sep 6, 2022
@chantal-kelm
Copy link
Member

chantal-kelm commented Sep 7, 2022

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 #4178 in the same PR.

This issue is blocked by wazuh/wazuh-documentation#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

@gdiazlo gdiazlo moved this from In Progress to Blocked in Release 4.4.0 Sep 7, 2022
@chantal-kelm chantal-kelm linked a pull request Sep 7, 2022 that will close this issue
@chantal-kelm
Copy link
Member

This is how the 'Deploy a new agent' section looks like now, while the issue is still blocked by wazuh/wazuh-documentation#5561.

videoagentes.mp4

@chantal-kelm
Copy link
Member

chantal-kelm commented Sep 13, 2022

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.

videonewhoy.mp4

@chantal-kelm
Copy link
Member

chantal-kelm commented Sep 14, 2022

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

@chantal-kelm chantal-kelm linked a pull request Oct 4, 2022 that will close this issue
@AlexRuiz7 AlexRuiz7 moved this from Blocked to On Hold in Release 4.4.0 Oct 5, 2022
@chantal-kelm
Copy link
Member

This is what the 'Deploy new agent' section looks like.

ultimaversion.mp4

@chantal-kelm
Copy link
Member

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:

links.mp4

@Machi3mfl Machi3mfl self-assigned this Oct 12, 2022
@Desvelao Desvelao moved this from On Hold to Blocked in Release 4.4.0 Oct 14, 2022
@Machi3mfl
Copy link
Member

Machi3mfl commented Oct 18, 2022

Status

  • Order the OS buttons in the Deploy new Agent steps. Solved in commit

image

@AlexRuiz7 AlexRuiz7 moved this from Blocked to In Review in Release 4.4.0 Oct 27, 2022
@AlexRuiz7 AlexRuiz7 moved this from In Review to Blocked in Release 4.4.0 Oct 27, 2022
@chantal-kelm
Copy link
Member

chantal-kelm commented Nov 2, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment