zenidd
9cac95729b
Set empty authd pass
2020-10-23 14:04:18 +02:00
zenidd
583f38f19c
Merge master changes
2020-10-20 17:44:26 +02:00
Manuel J. Bernal
6a6fb15654
Remove vuls block from Linux tasks
2020-10-07 17:03:28 +02:00
Manuel J. Bernal
54443102f7
WIP: auto-enrollment implementation
2020-09-01 22:55:53 +02:00
Manuel J. Bernal
e310b7b766
Fixed check_mode when condition
2020-07-23 12:32:47 +02:00
Manuel J. Bernal
3b87adf8a3
Merge pull request #194 from dsroark-dt/async_ignore_check_mode
...
ignore check mode for async tasks
2020-07-21 19:06:05 +02:00
Manuel J. Bernal
2212adb5bf
Merge branch 'devel' into wazuh-agent-fixes
2020-06-19 16:25:09 +02:00
Manuel J. Bernal
fdc3b0f55c
Lint changes
2020-05-14 18:13:53 +02:00
Manuel J. Bernal
8b278f316b
Merge branch 'feature-126-delegate-registration' into 126-agent-registration
2020-05-12 21:47:29 +02:00
Christos Pollalis
ae40cb4582
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.
2020-04-11 18:26:13 +03:00
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
Jose M. Garcia
67305df536
Merge branch 'devel' into async_ignore_check_mode
2020-03-31 12:37:53 +02: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
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
Jose M
8f0d54b274
Update Agent conditionals to make them work with custom packages install
2020-02-19 18:10:26 +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
7df74182f4
Fix conditional check for null variables
2019-12-17 11:50:28 +01:00
Jose M
8ef63f06eb
Fix Wazuh Agent name conditional in Linux.yml
2019-12-12 16:01:41 +01:00
Jose M
f60f218c88
Fix agent installation from sources. Update conditionals and includes
2019-11-25 15:43:38 +01:00
Jose M
13b2321540
Rename wazuh_sources_installation to wazuh_manager sources_installation
2019-11-21 15:01:15 +01:00
Jose M
c64d331e7f
Fix include_tasks for "installation_from_sources.yml"
2019-11-20 19:16:44 +01:00
Jose M
e3ecb74ca8
Move "installation_from_sources" include to Linux.yml
2019-11-20 19:09:40 +01:00
Jose M
b467a9e5c7
Fix linting for "Linux.yml" tasks in Wazuh Agent
2019-11-19 12:09:10 +01:00
Jose M
46b4d34695
Update conditionals to use new variables
2019-11-15 16:41:28 +01:00
Manuel Gutierrez
0384bf6911
Switch agent to include_tasks
2019-11-11 16:07:00 +01:00
Jose M
0b62d85802
Fix linting: trailing whitespace
2019-11-06 15:30:46 +01:00
Jose M
357a21bed3
Update Agent installation tasks to remove "-1" sufix
2019-11-06 15:19:07 +01:00
Jose M. Garcia
451a74d94d
Merge branch 'devel' into feature-300-add-agent-restart
2019-11-05 17:07:53 +01:00
Jose M. Garcia
37333b5c34
Merge branch 'devel' into feature-298-update-agent-name
2019-11-05 16:58:18 +01:00
Jose M
1593e7fdc2
Fix syntax errors on Wazuh Agent installation conditionals
2019-11-05 16:50:26 +01:00
Jose M
c02885c2ad
Update conditional in Redhat/Debian installation
2019-11-05 16:50:26 +01:00
Jose M
b6ccd7020e
Add notify to Agent registration tasks to explictly restart it
2019-11-05 14:25:11 +01:00
Jose M
e531427df0
Fix syntax error on Register agent task
2019-11-05 13:38:08 +01:00
Jose M
5af556b72c
Update Wazuh Agent registration task with new "agent_name" var
2019-11-05 12:49:21 +01:00
Manuel Gutierrez
65ba7e088f
Add config tag to the enable service task
2019-09-27 18:39:21 +02:00
Jani Heikkinen
8db9700f02
added wazuh_agent_nat boolean variable for agents behind nat
2019-07-18 09:00:39 +00:00
Rshad Zhran
2150d71a60
changing permissions
2019-07-17 12:21:19 +02:00
rshad
873e9759ae
Versioning and Ansible-Linting fixes are introduced to wazuh-agent and filebeat installations and testings
2019-07-12 13:06:02 +00:00
rshad
5d006cbc3a
adapted wazuh-manager installation so it takes into account the package version - Differentiating between CentOS/RedHat and Debian
2019-07-09 15:31:38 +00:00
rshad
a48169d53f
modified molecule.yml for wazuh-agent and elasticsearch - Lint
2019-07-08 09:27:01 +00:00
Devin Roark
72ccac8518
ignore check mode for async roles
2019-06-27 09:32:10 -04:00
Werner Dijkerman
af758690a1
Added molecule test for the Wazuh Agent
2019-04-27 15:26:18 +02:00
Carlos Dominguez
492c25eeaf
Merge pull request #133 from singuliere/agent-cleanup
...
cleanup: move redundant tags to the outer block
2019-01-11 15:20:05 +01:00
singuliere
7cce8e9490
make agent registration delegate_to configurable
...
Registering to the API requires the port 55000 of the wazuh manager is
open. Depending on the firewall policy, it may be true from the
ansible controller, reason why it was delegated to localhost in the
original implementation at 6cb6d3bda8
The role should be more flexible and allow for the API call to be made
from the ansible controller or the host.
Implementation note: although it would be more elegant to use omit
instead of inventory_hostname, it is not possible because of an
ansible bug at this time https://github.com/ansible/ansible/issues/26009
Fixes: https://github.com/wazuh/wazuh-ansible/issues/126
Signed-off-by: singuliere <singuliere@autistici.org>
2019-01-10 17:24:23 +01:00
singuliere
d33b5c90c3
cleanup: move redundant tags to the outer block
2019-01-10 10:01:06 +01:00