wazuh / qa-system-framework

GNU General Public License v2.0
1 stars 3 forks source link

HostManager: Remove OS and become from method parameters, utilize inventory values instead #38

Closed Rebits closed 1 year ago

Rebits commented 1 year ago

Description

HostManager utilizes an inventory to execute remote actions on hosts. Certain methods require the operating system (OS) and if it is require use the become ansible option as parameters, which can complicate the creation of new methods within the WazuhHandler class, which will require to handle the os and become values of all the wazuh component.

To address this, it is recommended to eliminate the OS logic from the methods parameters and rely on the OS specified in the provided inventory. This approach simplifies the process of adding new methods to the WazuhHandler class.