wazuh / qa-system-framework

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

Add configuration methods #56

Closed juliamagan closed 1 year ago

juliamagan commented 1 year ago

Description

In this PR, functions have been added that will be used for the configuration of Wazuh nodes. This configuration can be done either in parallel or not.

The following functions have been added which are responsible for modifying and restoring the configuration:

In addition, the following functions have been added, which are responsible for executing the above functions in parallel when desired:

The configuration expected by these functions will have the following format:

wazuh-manager1:
  local_internal_options.conf:
    remoted.debug: '2'
  ossec.conf:
  - section: client
    elements:
    - server:
        elements:
        - address:
            value: 121.1.3.1
  agent.conf:
    group: default
    configuration:
    - section: client
      elements:
      - server:
          elements:
          - address:
              value: 121.1.3.1
  api.yaml:
    logs:
      level: debug

wazuh-agent1:
  ossec.conf:
    ...

The supported files are ossec.conf, agent.conf, api.yaml and agent.conf

QU3B1M commented 1 year ago

LGTM! 🚀

BelenValdivia commented 1 year ago

LGTM!