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
Within the Configurer module, a submodule named ova_configurer will be created. This submodule will handle all configurations required for integrating Wazuh and preparing it for deployment as an OVA.
The submodule will include two essential parts:
Base OVA Configuration Files: These files are mentioned in the OVA spike and are responsible for setting up a base instance that will serve as the foundation for subsequent Wazuh configurations.
OVA Generation Configuration Files: These files are currently located in the ova directory and are used to prepare the OVA for deployment.
Initially, these files will already exist but will need to be migrated to Python. This transition will create a more maintainable and testable structure since the current Bash scripts are complex and less scalable.
Important
Additionally, configurations currently implemented through Ansible playbooks must also be transitioned to Python. This ensures Ansible is used only for copying files from the local machine to the remote machine and executing the Configurer.
By adapting these files to Python, we can establish a modular structure allowing us to:
Customize a base OVA using the initial configuration files.
Configure the main Wazuh components in the OVA via the core_configurer.
Set up the OVA for proper generation and deployment.
Unit Tests
As the submodule is developed, unit tests must be written continuously to validate the correctness of each method and/or function.
The tests will use pytest, and overall test coverage should be monitored to ensure that a significant percentage of the code is being tested.
Deployment Tests
Deployment tests for the OVA configuration must verify that the OVA includes all configurations specified in the configuration files, such as:
Wazuh logo displayed during the login session.
A wazuh-user user account is created.
Hostname is updated appropriately.
Initial login instructions (username and password) are displayed.
Wazuh splash screen is displayed correctly when the OVA is powered on.
Description
Within the Configurer module, a submodule named ova_configurer will be created. This submodule will handle all configurations required for integrating Wazuh and preparing it for deployment as an OVA.
The submodule will include two essential parts:
ova
directory and are used to prepare the OVA for deployment.Initially, these files will already exist but will need to be migrated to Python. This transition will create a more maintainable and testable structure since the current Bash scripts are complex and less scalable.
Important
Additionally, configurations currently implemented through Ansible playbooks must also be transitioned to Python. This ensures Ansible is used only for copying files from the local machine to the remote machine and executing the Configurer.
By adapting these files to Python, we can establish a modular structure allowing us to:
Unit Tests
As the submodule is developed, unit tests must be written continuously to validate the correctness of each method and/or function.
The tests will use
pytest
, and overall test coverage should be monitored to ensure that a significant percentage of the code is being tested.Deployment Tests
Deployment tests for the OVA configuration must verify that the OVA includes all configurations specified in the configuration files, such as:
wazuh-user
user account is created.Related issue
DRI
@teddytpc1
The text was updated successfully, but these errors were encountered: