Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate agent-group files to wazuh-db - Packages changes #1124

Closed
3 tasks done
pereyra-m opened this issue Dec 28, 2021 · 0 comments · Fixed by #1299
Closed
3 tasks done

Migrate agent-group files to wazuh-db - Packages changes #1124

pereyra-m opened this issue Dec 28, 2021 · 0 comments · Fixed by #1299

Comments

@pereyra-m
Copy link
Member

pereyra-m commented Dec 28, 2021

Description

During the implementation of the epic wazuh/wazuh#10771, the global.db will be the only place where the groups assignation is stored and this information will not be present in the files anymore. This requires some changes in the packages scripts:

  • From now on, the global.db can't be deleted because its content won't be regenerated. Considering this new behavior, a new WAZUH_HOME/backup/db folder must be created to store the periodic global.db backups that will be generated as part if the new feature implemented in Create a new backup mechanism for Wazuh-DB databases - Implementation wazuh#11389.

  • The folder WAZUH_HOME/queue/agent-groups should no longer be created during the installation.

  • The folder WAZUH_HOME/backup/groups is no longer necessary

NOTE: some of these changes have already been implemented on dev-10771-agent-groups-files-to-wazuh-db

Tasks

  • Modify the packages to remove the WAZUH_HOME/backup/groups folder during upgrades and don't create it in clean installations.
  • Modify the packages to create the WAZUH_HOME/backup/db folder during the installations and upgrades.
  • Modify the packages to avoid the creation of the WAZUH_HOME/queue/agent-groups folder during the installations. Note: It is not necessary to implement a mechanism to remove the folder in the upgrades because this cleaning mechanism will be done by modulesd in the first startup after the upgrade.
@pereyra-m pereyra-m changed the title Create new folder for databases backups Migrate agent-group files to wazuh-db - Packages changes Jan 10, 2022
@AdriiiPRodri AdriiiPRodri self-assigned this Mar 4, 2022
@vikman90 vikman90 added this to the Release 4.4.0 milestone Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants