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

Fixes for wazuh-agent registration #406

Merged
merged 3 commits into from
Jun 19, 2020
Merged

Commits on Apr 10, 2020

  1. Make agent registration via the rest API idempotent

    Check whether an error was returned by the HTTP POST to the `agents/`
    endpoint before invoking `/var/ossec/bin/manage_agents` in order to
    register a new agent.
    
    It seems like that if an agent has already been registered under the
    given name, the HTTP POST will return an error that'll cause the next
    task, which is meant to retrieve the agent information, to be skipped.
    That'll cause the agent registration task to fail in return. Instead,
    this change will cause the aforementioned task to be skipped, too. So,
    if an agent has already been successfully registered and the playbook
    is re-run, it'll run all the way to the end.
    
    If anything goes wrong (during the registration process) and the agent
    fails to start, the `restart wazuh-agent` handler will still fail.
    pchristos committed Apr 10, 2020
    Configuration menu
    Copy the full SHA
    f6e0206 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2020

  1. Split "Copy CA, SSL key and cert for authd" task

    of the wazuh-agent playbook to allow one to perform either manager
    or agent verification, or both.
    pchristos committed Apr 11, 2020
    Configuration menu
    Copy the full SHA
    ae40cb4 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2020

  1. Merge branch 'devel' into wazuh-agent-fixes

    Manuel J. Bernal authored Jun 19, 2020
    Configuration menu
    Copy the full SHA
    2212adb View commit details
    Browse the repository at this point in the history