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

Custom Windows agent support #798

Closed
2 tasks done
Tracked by #797
roronoasins opened this issue Jun 14, 2022 · 1 comment · Fixed by #801
Closed
2 tasks done
Tracked by #797

Custom Windows agent support #798

roronoasins opened this issue Jun 14, 2022 · 1 comment · Fixed by #801
Assignees
Labels
qa QA qa-thunder QA support: Vulnerability detector, Wazuh DB, Integrator, Log rotation, Labels, Office 365

Comments

@roronoasins
Copy link

roronoasins commented Jun 14, 2022

Description

As part of #797, we need to check that current wazuh-ansible playbooks allow us to provision Windows agents.

If that is not the case, we need to extend them to make this possible.

Tasks

  • Research about Windows support
  • Extend the playbooks if necessary
@roronoasins roronoasins added qa QA qa-thunder QA support: Vulnerability detector, Wazuh DB, Integrator, Log rotation, Labels, Office 365 labels Jun 14, 2022
@roronoasins roronoasins self-assigned this Jun 14, 2022
@roronoasins
Copy link
Author

roronoasins commented Jun 14, 2022

15/06/22

  • Tested parameterized versioning (not performed to keep the actual versioning)
  • Added custom packages for Windows agents
Inventory used
managers:
  hosts:
    Deployer_44_20220615151955_ubuntu_0_0:
      ansible_host: 172.31.10.85
      ansible_user: qa
      ansible_connection: ssh
ec2:
  hosts:
    Deployer_44_20220615151955_ubuntu_0_0:
      ansible_host: 172.31.10.85
      ansible_user: qa
      ansible_connection: ssh
    Deployer_44_20220615151955_windows_1_0:
      ansible_host: 172.31.9.127
      ansible_user: qa
      ansible_connection: winrm
  vars:
    service: ec2
linux:
  hosts:
    Deployer_44_20220615151955_ubuntu_0_0:
      ansible_host: 172.31.10.85
      ansible_user: qa
      ansible_connection: ssh
  vars:
    os: linux
agents:
  hosts:
    Deployer_44_20220615151955_windows_1_0:
      ansible_host: 172.31.9.127
      ansible_user: qa
      ansible_password: xxxxx
      ansible_connection: winrm
      wazuh_custom_packages_installation_agent_msi_url: package_url_wazuh-agent-4.3.0-1.msi
      wazuh_custom_packages_installation_agent_enabled: true
windows:
  hosts:
    Deployer_34_20220615092433_windows_1_0:
      ansible_host: 172.31.5.110
      ansible_user: qa
      ansible_connection: winrm
  vars:
    os: windows
all:
  vars:
    ansible_ssh_common_args: -o StrictHostKeyChecking=no
    ansible_ssh_private_key_file: "path_to_ephemeral_key"
    ansible_winrm_server_cert_validation: ignore

Now, adding the following vars into the host within your inventory, you can install a custom windows agent package:

  • wazuh_custom_packages_installation_agent_msi_url
  • wazuh_custom_packages_installation_agent_enabled

roronoasins pushed a commit that referenced this issue Jun 15, 2022
Now, you can install Windows agents specifyin the following vars in your inventory:
- wazuh_custom_packages_installation_agent_msi_url: package_url
- wazuh_custom_packages_installation_agent_enabled: true
@roronoasins roronoasins linked a pull request Jun 15, 2022 that will close this issue
@Rebits Rebits closed this as completed Aug 5, 2022
@Rebits Rebits changed the title Add(verify) wazuh-ansible Windows support Custom Windows agent support Aug 5, 2022
Rebits pushed a commit that referenced this issue Sep 5, 2022
Now, you can install Windows agents specifyin the following vars in your inventory:
- wazuh_custom_packages_installation_agent_msi_url: package_url
- wazuh_custom_packages_installation_agent_enabled: true
Rebits pushed a commit that referenced this issue Sep 7, 2022
Now, you can install Windows agents specifyin the following vars in your inventory:
- wazuh_custom_packages_installation_agent_msi_url: package_url
- wazuh_custom_packages_installation_agent_enabled: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
qa QA qa-thunder QA support: Vulnerability detector, Wazuh DB, Integrator, Log rotation, Labels, Office 365
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants