Change installation from using repositories to using packages #546
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR focuses on changing the method of downloading and installing components from using repositories to using packages.
First, the functions related to configuring repositories and downloading using them have been removed.
Next, several functions have been included that are responsible for downloading the
artifact_urls.ymlfile that will be generated for each release/stage and stored in the corresponding AWS S3 bucket. In addition, functions have been included that check that the file format is as expected and that the components exist within it.Functions have been included to download the component packages, and the installation functions for each component have been modified to comply with version 5.0 and these new changes.
The dependencies of each component have been adjusted, updating them to those required for version 5.0 of each component.
In addition, the behavior of the
-doption has been changed to supportlocalmode, which assumes that the user has theartifact_urls.ymlfile located in the same path where the wizard is running.A temporary directory called
wazuh-install-packageshas been included to store the downloaded packages, which is deleted when the installation is complete.Tests
All In One installation:
Related issue
Important
The development of the offline installation is still pending.