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

Adapt automation that uses the allocator #239

Open
fcaffieri opened this issue Feb 12, 2025 · 1 comment · May be fixed by #254
Open

Adapt automation that uses the allocator #239

fcaffieri opened this issue Feb 12, 2025 · 1 comment · May be fixed by #254
Assignees
Labels
level/task Task issue type/enhancement Enhancement issue

Comments

@fcaffieri
Copy link
Member

Description

Due to the changes requested in issue #2079, modifications were made to the inventory generated by the Allocator.
The output format of inventory.yaml was modified to be in Ansible format.

Previous format:

ansible_connection:ssh
ansible_host: ec2-34-204-85-128.compute-1.amazonaws.com
ansible_port: 2200
ansible_ssh_common_args: -o StrictHostKeyChecking=no
ansible_ssh_private_key_file: /tmp/wazuh-devops-testing-machines/wia-155/wia-155-23-01-2025-19-39
ansible_user: ubuntu

New format:

all:
  hosts:
    i-0296704b894b571b5:
      ansible_connection: ssh
      ansible_host: ec2-107-21-70-81.compute-1.amazonaws.com
      ansible_port: 2200
      ansible_ssh_common_args: -o StrictHostKeyChecking=no
      ansible_ssh_private_key_file: /tmp/wazuh-qa/automation-2036-ubuntu-22.04-691/automation-2036-ubuntu-22.04-key-7074
      ansible_user: ubuntu

This format is valid to be executed directly with an ansible playbook. For more detailed examples see this comment

Review any automation that uses the inventory of Allocator to adapt them to the new format.

The objective of this issue is to modify the automation that utilizes the allocator; these modifications will take effect from version 4.12.0 onwards.
For testing you can use the branches:

  • Based on main: enhancement/2079-adapt-allocator-to-generate-ansible-inventory-to-master
  • Based on 4.12.0: enhancement/2079-adapt-allocator-to-generate-ansible-inventory

Approved by

DRI name:

@fcaffieri fcaffieri added level/task Task issue type/enhancement Enhancement issue labels Feb 12, 2025
@wazuhci wazuhci moved this to Backlog in XDR+SIEM/Release 4.12.0 Feb 17, 2025
@wazuhci wazuhci moved this from Backlog to In progress in XDR+SIEM/Release 4.12.0 Feb 18, 2025
@fcaffieri
Copy link
Member Author

fcaffieri commented Feb 18, 2025

Update report

The necessary changes have been analyzed. The modifications have been implemented so that the workflow directly uses the inventory generated by the allocator.
The playbooks need to be modified.

@wazuhci wazuhci moved this from In progress to On hold in XDR+SIEM/Release 4.12.0 Feb 19, 2025
@wazuhci wazuhci moved this from On hold to In progress in XDR+SIEM/Release 4.12.0 Feb 20, 2025
@fcaffieri fcaffieri linked a pull request Feb 21, 2025 that will close this issue
@fcaffieri fcaffieri linked a pull request Feb 21, 2025 that will close this issue
@wazuhci wazuhci moved this from In progress to Pending review in XDR+SIEM/Release 4.12.0 Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/enhancement Enhancement issue
Projects
Status: Pending review
1 participant