You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
teddytpc1
changed the title
Installation assistant must ask permission before installing dependencies
Installation assistant must ask for confirmation before installing dependencies
Mar 12, 2024
After talking this issue with the team, we decided not to make the script interactive. The proposed approach is to inform the user about the dependencies that need to be installed and stop the execution of the script (if the --install-dependencies parameter is not specified).
With this, we avoid making the script interactive (that can be bothersome to the user), but the Installation assistant will require a confirmation to install the dependencies by specifying the new parameter).
As the dependencies installation is done, the previous approach had conflicts with the openssl and lsof packages, which are treated as "special dependencies" and are installed separately. These dependencies would make not inform the user about the rest of the dependencies that are going to be installed.
After talking with @c-bordon, we reached the conclusion to rework the way the Installation assistant installs the dependencies and solve this problem as effectively as possible.
The approach is:
Scan dependencies
Inform about all the dependencies that are going to be installed, and also the ones which are going to be removed. At this point, the Assistant exists if the new parameter is specified.
If the parameter is specified, install the Assistant dependencies
Install the rest of the dependencies, depending on the chosen installation type.
Remove the Assistant dependencies when finishing the installation.
Description
Context
Currently, the Wazuh installation assistant installs two types of dependencies:
Feature request
It is necessary to implement a new logic that avoids installing dependencies without permission. This new logic is divided in:
--asume-yes
,-y
,--install-dependencies
, etcSteps before development
Steps after development
Test_unattended_tier
,Test_unattended
,Test_unattended_distributed
andTest_unattended_distributed_cases
will be deprecated.testing
andprovision
modules.The text was updated successfully, but these errors were encountered: