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

Add manager and agent roles #68

Open
wants to merge 4 commits into
base: 57-add-provisioning-roles
Choose a base branch
from

Conversation

roronoasins
Copy link
Contributor

Description

This PR adds a first roles structure to the framework within a new folder, provisioning.

OS support:

  • Manager
    • CentOS
    • Ubuntu
    • Debian
    • ALAS
    • RedHat
  • Agent
    • CentOS
    • Ubuntu
    • Debian
    • ALAS
    • RedHat
    • Windows
    • Solaris (only providing custom package)
    • MacOS (only providing custom package)

The installed version is the latest from production by default. If you provide another one using packages_version it installs that version using the repo.

You can enable the custom packages by setting wazuh_custom_packages_installation_agent_enabled to true using the inventory and providing the package url.

Add

  • Add provisioning folder structure
  • Add manager role
    • installation via repo which also supports versioning
    • installation via custom packages
  • Add agent role
    • installation via repo which also supports versioning
    • installation via custom packages

roronoasins added 4 commits June 16, 2023 17:18
This commit adds the initial provisioning structure with the manager role (with its playbook, tasks, etc.). This allows to install the any manager version using custom packages or repo.

Note: When using the repo it uses `4.x` gpg, we should discuss if we want to extend the support
@roronoasins roronoasins requested a review from Rebits June 23, 2023 16:28
@roronoasins roronoasins self-assigned this Jun 23, 2023
@roronoasins roronoasins linked an issue Jun 23, 2023 that may be closed by this pull request
@BelenValdivia
Copy link

@roronoasins Please fix the linter errors
image

yum: 'https://packages.wazuh.com/4.x/yum/'
gpg: 'https://packages.wazuh.com/key/GPG-KEY-WAZUH'
key_id: '0DCFCA5547B19D2A6099506096B3EE5F29111145'
wazuh_winagent_repo_pkg_url: "https://packages.wazuh.com/4.x/windows/wazuh-agent-{{ wazuh_agent_version }}-1.msi"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you specify the 4.x version in the URL? What happens if you want to test another version, 3.x for example?

@@ -0,0 +1,3 @@
packages_repository: production
manager_production_version: 4.4.4
agent_production_version: 4.4.4

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same previous comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add manager and agent roles
2 participants