Christos Pollalis
f6e020631e
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.
2020-04-11 02:15:42 +03:00
Zenidd
02d945bed4
Empty custom agent packages url
2020-03-25 18:07:29 +01:00
Zenidd
6b57e195b8
jinja template fixes
2020-03-25 15:50:47 +01:00
Zenidd
0019c7fdf2
Updating manager configuration templates and vars
2020-03-25 15:50:47 +01:00
Manuel J. Bernal
0936d47786
Merge branch 'master' into wazuh-release-v3.12.0_7.6.1
2020-03-24 19:20:51 +01:00
Zenidd
dfc7bbf4b3
Updates to adapt ossec.conf templates to Wazuh v3.12 default ones
2020-03-24 18:21:46 +01:00
Manuel Gutierrez
14e2a6bb47
Bump versions to 3.12.0_7.6.1
2020-03-24 16:46:01 +01:00
Rshad Zhran
fd4515ab16
Merge branch 'devel' into feature-359-agent-auth-groups
2020-03-23 19:38:02 +01:00
Rshad Zhran
aba02c801a
Merge branch 'devel' into feature-359-agent-auth-groups
2020-03-23 16:21:37 +01:00
Zenidd
ec481c790a
Fixing lint warnings
2020-03-23 15:37:52 +01:00
manuasir
f0bf926c8d
Merge branch 'devel' into fix-390-xml
2020-03-23 15:18:25 +01:00
Manuel J. Bernal
d75f75b76b
Fixes #390 . Removed bad formed XML comments.
2020-03-23 14:01:57 +01:00
Zenidd
b67a5e5e97
Adding new registration_adress ansible var
2020-03-23 12:47:58 +01:00
Rshad Zhran
805695766c
Merge branch 'devel' into feature-359-agent-auth-groups
2020-03-20 22:04:54 +01:00
Rshad Zhran
c63756d541
Fix list check if it's empty
2020-03-20 21:35:18 +01:00
Zenidd
4b9fb53549
Removing readall perms in certs files. Minor syntax normalizations
2020-03-17 18:21:33 +01:00
Jose M
3b166ea617
Add flag to enable/disable Windows MD5 check
2020-03-09 15:07:21 +01:00
Jose M
2651bc5386
Revert "Merge pull request #381 from wazuh/remove_windows_md5_check"
...
This reverts commit 4cc3e077a0 , reversing
changes made to 52a81af988 .
2020-03-09 14:57:12 +01:00
Jose M
91948198a0
Revert "Merge pull request #381 from wazuh/remove_windows_md5_check"
...
This reverts commit 4cc3e077a0 , reversing
changes made to 52a81af988 .
2020-03-09 14:56:32 +01:00
Jose M
ab0a6aaaf3
Remove Windows MD5 verification
2020-03-09 14:08:12 +01:00
Jose M
58f0484cda
Bump Windows Agent version
2020-03-09 09:47:27 +01:00
Manuel J. Bernal
c3dd95c8ce
Bump MD5 agent
2020-03-05 16:53:15 +01:00
Manuel J. Bernal
3f0e032580
Bump version
2020-03-05 16:44:02 +01:00
Jose M
4982b2868d
Fix conditionals error related with AL2 custom packages installation
2020-03-03 13:14:13 +01:00
Jose M
ac8a0c8308
Adapt Agent installation from custom packages to support RHEL/Centos 8
2020-03-02 22:43:15 +01:00
Jose M
4f8d3c6c0c
Remove traling whitespace in win_package task
2020-02-20 12:46:41 +01:00
Jose M
c32b1ed1bd
Change Window spackage occurences to adapt it to the new variables
2020-02-20 12:39:45 +01:00
Jose M
2a7241b31a
Adapt Windows Agent package related variables
2020-02-20 12:39:26 +01:00
Jose M
9dddd2b26e
Restore Wazuh installation to default configuration
2020-02-19 19:19:16 +01:00
Jose M
807a816cf2
Set Wazuh version to 3.12.0 for testing purposes
2020-02-19 18:12:44 +01:00
Jose M
53cee9a7be
Fix trailing whitespace in RedHat.yml tasks from Agent
2020-02-19 18:11:39 +01:00
Jose M
8f0d54b274
Update Agent conditionals to make them work with custom packages install
2020-02-19 18:10:26 +01:00
Jose M
281d54557a
Create tasks to download and install Agent from .rpm and .deb packages
2020-02-19 18:09:48 +01:00
Jose M
aa33bd3531
Add required variables to install agents from custom packages
2020-02-19 18:09:26 +01:00
Manuel Gutierrez
abdbab9247
Fix auth path for 64bits Windows
2020-02-14 15:09:40 +01:00
Rshad Zhran
50ad3e07da
Remove trailing spaces
2020-02-11 17:56:06 +01:00
Rshad Zhran
e1b3156ee6
Add ability to register agent and assign it to groups
2020-02-11 16:16:15 +01:00
Rshad Zhran
e11c44e72e
Set group list to empty
2020-02-11 16:14:50 +01:00
Manuel J. Bernal
c19b08d449
Merge pull request #348 from joschneid/master
...
some adjustments for systems without (direct) internet connection
2020-02-10 13:34:56 +01:00
Jose M. Garcia
c4c2b53891
Merge pull request #356 from wazuh/release-wazuh_3.11.3_7.5.2
...
Release Ansible Wazuh 3.11.3_7.5.2
2020-01-28 20:08:52 +01:00
Jose M
81096636d0
Update MD5 hash for Windows Agent
2020-01-28 18:37:48 +01:00
Jose M
b39e6debac
Bump version to 3.11.3_7.5.2
2020-01-28 12:17:53 +01:00
Manuel Gutierrez
f1771eaa62
Fix agent's ossec.conf for CentOS 8
2020-01-27 19:32:54 +01:00
Jochen Schneider
5479fc5550
corrected repo key id parameter
2020-01-23 14:30:55 +01:00
Jose M
94095c88c9
Bump MD5 hash for Windows Agent
2020-01-22 15:14:56 +01:00
Jose M
d79a14de05
Bump version to 3.11.2_7.5.1
2020-01-22 13:30:53 +01:00
Jochen Schneider
50964bd0f8
better naming for parameter kid
2020-01-21 11:57:33 +01:00
joschneider
6361eacbf0
repo gpg key id as a paramater
2020-01-21 10:56:59 +01:00
Jochen Schneider
d328609f29
repo param not needed any longer
2020-01-16 13:06:40 +01:00
Jochen Schneider
c3cc763a5e
added key ID for download only when required
2020-01-16 11:58:05 +01:00