As part of the development of https://github.com/wazuh/wazuh-agent/issues/32 it is necessary for the module to validate the files received and if they are correct apply the configuration received or restart the agent as needed.
File Reading and Validation:
The agent must read the configuration files in the specified order.
The agent must validate each configuration file to ensure it is error-free.
Configuration Application:
If validation is successful, the agent must apply the new configuration to all relevant modules.
If required, the agent must be able to restart to apply the new configuration fully.
Other considerations:
Remove duplicated code.
Include some useful logs (ie. when the command is not recognized).
Parent issue:
Description
As part of the development of https://github.com/wazuh/wazuh-agent/issues/32 it is necessary for the module to validate the files received and if they are correct apply the configuration received or restart the agent as needed.
File Reading and Validation:
Configuration Application:
Other considerations:
m_setGroupIdFunction
,m_getGroupIdFunction
,m_downloadGroupFilesFunction
).