The current code of the WazuhAgent class has many if statements based on the os_type,distribution, and architecture taken from the inventory. Creating an inheritance hierarchy will make the code more organized and easy to maintain.
Each inherited Agent class can reimplement functions like install, download, restart, etc.
The current code of the WazuhAgent class has many
if
statements based on theos_type,
distribution,
andarchitecture
taken from the inventory. Creating an inheritance hierarchy will make the code more organized and easy to maintain.Each inherited Agent class can reimplement functions like install, download, restart, etc.