Merge pull request #301 from wazuh/feature-298-update-agent-name

Fix and update agent_name variable for Agent registration in Linux
This commit is contained in:
Manuel J. Bernal 2019-11-05 17:06:58 +01:00 committed by GitHub
commit 9cfdddc7d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file.
### Fixed
- Wazuh Agent registration using agent name has been fixed [@jm404](https://github.com/jm404) [#298](https://github.com/wazuh/wazuh-ansible/pull/298)
- Fix Wazuh repository and installation conditionals [@jm404](https://github.com/jm404) [#299](https://github.com/wazuh/wazuh-ansible/pull/299)
## [v3.10.2_7.3.2]

View File

@ -12,6 +12,7 @@ wazuh_auto_restart: 'yes'
wazuh_agent_authd:
enable: false
port: 1515
agent_name: null
ssl_agent_ca: null
ssl_agent_cert: null
ssl_agent_key: null

View File

@ -51,7 +51,7 @@
- name: Linux | Register agent (via authd)
shell: >
/var/ossec/bin/agent-auth
-A {{ agent_name }}
{% if wazuh_agent_authd.agent_name is not none %}-A {{ wazuh_agent_authd.agent_name }} {% endif %}
-m {{ wazuh_managers.0.address }}
-p {{ wazuh_agent_authd.port }}
{% if wazuh_agent_nat %}-I "any" {% endif %}

View File

@ -60,6 +60,7 @@
{{ wazuh_agent_win_auth_path }}
-m {{ wazuh_managers.0.address }}
-p {{ wazuh_agent_authd.port }}
{% if wazuh_agent_authd.agent_name is not none %}-A {{ wazuh_agent_authd.agent_name }} {% endif %}
{% if authd_pass is defined %} -P {{ authd_pass }}{% endif %}
register: agent_auth_output
notify: Windows | Restart Wazuh Agent