Commit Graph

321 Commits

Author SHA1 Message Date
Rshad Zhran
e5643b33cc Bump version - Wazuh = 3.11.1_7.5.1 2020-01-07 13:57:47 +01:00
Jose M
879c2782b0 Bump version to 3.11.0_7.5.1 2019-12-26 11:58:01 +01:00
Rshad Zhran
e7e3a39df7 Adapt agent (windows) to 3.11 2019-12-18 17:14:07 +01:00
Rshad Zhran
dc96d210e5 Fix conditional check for null variables
cherry pick: 7df74182f4
2019-12-17 14:20:26 +01:00
Rshad Zhran
760057583c Bump version to wazuh 3.11.0 2019-12-17 14:15:16 +01:00
Rshad Zhran
7df74182f4 Fix conditional check for null variables 2019-12-17 11:50:28 +01:00
Rshad Zhran
2ddd8b9e72 Add conditional check for syscheck.auto_ignore 2019-12-16 21:55:54 +01:00
Jose M
8ef63f06eb Fix Wazuh Agent name conditional in Linux.yml 2019-12-12 16:01:41 +01:00
Jose M
f6e4468fd8 Change default installation mode to packages. 2019-12-10 10:12:32 +01:00
Rshad Zhran
03e409fc52 Disable cis-cat 2019-12-05 18:44:18 +01:00
Rshad Zhran
29b4a9aacd Change server protocol '' tcp -> udp '' 2019-12-05 17:20:24 +01:00
Rshad Zhran
da2442ca06 Adapt agent installation to the default 2019-12-05 17:03:50 +01:00
Jose M
a25b7d9681 Fix conditionals related with Manager and API kind of installatioin 2019-11-26 14:55:57 +01:00
Jose M
94ed23c607 Testing Agent from packages. Testing sources/package for manager and api 2019-11-26 13:22:42 +01:00
Jose M
b4352beda1 Add changed_when conditionals to avoid idempotence errors 2019-11-26 00:39:19 +01:00
Jose M
a4f68f6487 Remove molecule-idemptence-notest tag to fix Jenkins build 2019-11-25 20:04:28 +01:00
Jose M
3406109b33 Remove tags from "preloaded-vars.conf" 2019-11-25 19:35:23 +01:00
Jose M
fd50b60485 Fix linting 2019-11-25 19:01:02 +01:00
Jose M
fa0e3f1640 Fix cleanup tasks for Wazuh Manager and Agent 2019-11-25 18:54:21 +01:00
Jose M
9c2ce76f09 Fix linting 2019-11-25 18:44:00 +01:00
Jose M
dc0aa448d0 Implement blocks to cleanup old files 2019-11-25 18:11:09 +01:00
Jose M
329910eb41 Solve typo in default Agent variables 2019-11-25 15:45:14 +01:00
Jose M
ce3dcf7abe Fix sources conditionals in Debian.yml tasks 2019-11-25 15:44:24 +01:00
Jose M
66ac8fea81 Fix naming copied from agent. Fix linting 2019-11-25 15:44:05 +01:00
Jose M
f60f218c88 Fix agent installation from sources. Update conditionals and includes 2019-11-25 15:43:38 +01:00
Jose M
cbad3e06a2 Fix sources conditionals for RedHat.yml 2019-11-25 15:43:10 +01:00
Jose M
32dd2e5df5 Rename "preloaded_vars" to "preloaded_vars_agent" 2019-11-25 15:42:56 +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
571abfbb2c Update untar task to pass linting, added comment 2019-11-20 19:00:53 +01:00
Jose M
841fe3d28d Remove testing address in "user_agent_server_ip" 2019-11-20 16:39:57 +01:00
Jose M
c5f2893a0b Update tasks path in "Redhat.yml" 2019-11-20 16:38:02 +01:00
Jose M
a6d614610e Format updates for "installation_from_sources.yml" 2019-11-20 16:37:49 +01:00
Jose M
0329441817 Update tasks and conditioinals for Agent installations in Debian families 2019-11-20 16:37:27 +01:00
Jose M
2c9b18de72 Update ("user_update" and "branch") variables. 2019-11-20 16:36:56 +01:00
Jose M
35d35b5059 Update tasks that download the Wazuh branch and extract it. 2019-11-20 14:59:38 +01:00
Jose M
b467a9e5c7 Fix linting for "Linux.yml" tasks in Wazuh Agent 2019-11-19 12:09:10 +01:00
Jose M
9258026c49 Update installation_from_sources.yml to pass linting 2019-11-19 12:08:42 +01:00
Jose M
b3a2fea6b9 UPdate wazuh-agent default settings related to sources_installation 2019-11-18 16:04:00 +01:00
Jose M
6a0c92294e Implement template for preloaded_vars.conf 2019-11-15 16:42:40 +01:00
Jose M
8ecbeff501 Update installation_from_sources.yml. Added installation conditionals 2019-11-15 16:42:27 +01:00
Jose M
46b4d34695 Update conditionals to use new variables 2019-11-15 16:41:28 +01:00
Jose M
df016d53c6 Add variables for wazuh installation from sources 2019-11-15 16:39:12 +01:00
Jose M
a3f4ed74ea Add installation_from_sources.yml tasks 2019-11-14 19:12:22 +01:00
Jose M
8e56076b9f Add conditionals to disable repo installation and install from sources 2019-11-14 19:11:59 +01:00
Jose M
2b4a1407a5 Add variables for sources installation 2019-11-14 19:11:28 +01:00
Manuel Gutierrez
0384bf6911 Switch agent to include_tasks 2019-11-11 16:07:00 +01:00
Jose M. Garcia
fbba2a1373
Merge pull request #313 from wazuh/feature-312-upgrade-apt-repo
Upgrade APT Wazuh repo
2019-11-07 09:59:33 +01:00
Jose M. Garcia
9878a2255f
Merge pull request #310 from wazuh/feature-309-update-agent-installation
Update agent installation
2019-11-07 09:59:06 +01:00
Jose M
154e10912a Include apt repository name in debian task. Remove explicit "deb" 2019-11-06 17:38:24 +01:00
Jose M
ee7cf1a598 Change default repo.apt variable of Managers and Agents to include "deb" 2019-11-06 17:37:40 +01:00
Jose M
c657ebd50e Change "openscap.disable" to no in default Wazuh Agent variables 2019-11-06 17:28:11 +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
00f04dd4a4 Update wazuh_agent_version value 2019-11-06 15:18:49 +01:00
Jose M
11fe7e81ba Fix trailing whitespaces for linting 2019-11-05 17:08:59 +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
27c332183d Add Amazon conditonal to RHEL/Centos 2019-11-05 16:51:41 +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
e52a5dba4f Update windows register task to use new "agent_name" variable 2019-11-05 14:44:33 +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
Jose M
0ce3590b6e Add "agent_name" var to "wazuh_agent_authd" vars 2019-11-05 12:48:38 +01:00
Jose M
f36d8be92e Fixing repo_v5 | skipped ocurrences. Updating to new format 2019-11-05 10:35:59 +01:00
Jose M
fd0d51bc52 Change Agent repository condition to .skipped like manager task 2019-10-28 20:53:14 +01:00
Jose M
1978496611 Merge branch 'devel' into feature-287-avoid-repo-hardcoding 2019-10-28 12:10:11 +01:00
Jose M
3bedf74055 Fix wrong conditionals in repo installation tasks 2019-10-28 11:50:55 +01:00
Jose M
afff33941d Update RedHat tasks to use dynamic repo urls from variables 2019-10-28 10:02:41 +01:00
Jose M
8a69a6e922 Update Debian repositories to use dynamic urls from default variables 2019-10-28 10:02:07 +01:00
Jose M
812fadd76b Add default to manage repositories 2019-10-28 10:01:25 +01:00
Jose M
88d3ea22dd Update tempate for ossec.conf (Agent) 2019-10-25 16:59:14 +02:00
Jose M
6b8b1b6eb4 Merge branch 'devel' into feature-256-add-sca-template 2019-10-07 16:18:57 +02:00
Jose M
d7e3cec04b Enabling sca for Windows Agent in the ossec.conf template 2019-10-07 16:17:18 +02:00
Jose M
0bc870b2a8 Merge branch 'feature-256-add-sca-template' into devel 2019-10-07 09:44:27 +02:00
Jose M
e36e1f4b23 Merge branch 'master' into devel 2019-10-02 10:07:03 +02:00
Jose M
d384c7397f Merge branch '3.10.2_7.3.2' 2019-10-02 10:03:19 +02:00
Jose M
867936d4c5 Update md5 for windows agent installater 2019-10-02 09:52:13 +02:00
Jose M
b9695dc905 Remove product_id parameter from windows Agent. Update md5 2019-10-02 09:44:56 +02:00
Manuel Gutierrez
65ba7e088f Add config tag to the enable service task 2019-09-27 18:39:21 +02:00
Jose M
d45ad1db03 Update wazuh agent template to add sca configuration 2019-09-27 14:30:20 +02:00
Jose M
3e0cc08104 Add sca default variables to wazuh agent defaults 2019-09-27 14:30:11 +02:00
Jose M
5646848266 Bump version to 3.10.2_7.3.2 2019-09-25 09:14:31 +02:00
Jose M
58b3b734be Bump version to 3.10.0_7.3.2 2019-09-16 18:10:28 +02:00
Jose M
bb591ee466 Remove traling whitespace on line 12 to fix ansible-linting error. 2019-09-09 17:13:33 +02:00
Jose M
ded355809e Remove brackets from "register_key" variable to fix the brackets problem in the installation task. 2019-09-09 13:27:22 +02:00
Jose M
78ca9ff616 Remove hardcoding of wazuh-agent 'product_id' 2019-09-09 13:09:51 +02:00
Jose M
d1246627ff Update wazuh-agent windows handler for restarting 2019-09-09 13:08:38 +02:00
Jose M
8f856eea7d Updated default attributes for windows agent. Added register_key. Removed quotes from path 2019-09-09 13:07:52 +02:00
Jose M
be977fa9ac Update task handler naming to a more explicit message 2019-09-09 13:07:03 +02:00
Jose M
1ad5763e00 Add verification for the wazuh directory path. 2019-09-09 13:06:42 +02:00
Jose M
a52d5e540c Modify registration task to use new fact "wazuh_agent_win_auth_path" 2019-09-09 13:05:40 +02:00
Jose M
ea69b7fc9b Update Wazuh installation tasks. Added Product key to avoid reinstalling Agent 2019-09-09 13:04:45 +02:00
Jose M
9f84bfe15a Update Windows x86 and x64 path detection. Added fact for authd. 2019-09-09 13:03:03 +02:00
Manuel J. Bernal
88585a2e80
Merge pull request #227 from joey1a2b3c/fix-ar-inconsistency
Fix typo in var-ossec-etc-ossec-agent.conf.j2
2019-09-04 11:22:54 +02:00
Joey Wong
06a3f2712c Fix typo in var-ossec-etc-ossec-agent.conf.j2 2019-09-03 14:19:31 -06:00
Joey Wong
fdc2cdb309 Fix typo in var-ossec-etc-ossec-agent.conf.j2 2019-09-03 14:06:30 -06:00
Apely
36d3cbee4a
Update var-ossec-etc-ossec-agent.conf.j2
Hi, it seems that ansible_os_family is too specific for syscheck. Ex: Debian strech ( ansible_os_family == Debian )
2019-08-22 12:33:45 +02:00
Rshad Zhran
c295ac2ea4 bump version for 3.9.5_7.2.1 2019-08-19 13:34:36 +02:00
manuasir
c171f3905b Bump version 2019-08-07 12:00:39 +02:00
Manuel J. Bernal
8d267f5a5b
Merge pull request #204 from ionphractal/use-tcp
Use tcp for all connections
2019-07-24 12:02:32 +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
14cd09a034 version bumping .. 2019-07-17 13:27:43 +02:00
Rshad Zhran
2150d71a60 changing permissions 2019-07-17 12:21:19 +02:00
Michael Both
9605280db0 Use tcp for all connections 2019-07-15 14:32: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
manuasir
eb66e7d4cb Passing tests 2019-06-14 17:12:49 +02:00
Manuel J. Bernal
bfc3d4e4e1 Bump version 2019-05-21 21:05:44 +02:00
manuasir
3c56b74d1e Bump version. 2019-04-30 18:07:30 +02:00
jm404
bcd535351b Adding openjdk repository for Ubuntu 14.04. 2019-04-30 16:59:29 +02:00
jm404
2716f2c7bf Fixed conflicts. 2019-04-29 17:42:48 +02:00
Werner Dijkerman
af758690a1 Added molecule test for the Wazuh Agent 2019-04-27 15:26:18 +02:00
l
9e22760911 Fixing whitespaces 2019-04-24 17:41:27 +02:00
l
b84aecfa67 Fixing syntax error at Debian tasks 2019-04-24 17:30:40 +02:00
l
a29eb8faf4 Using OpenJDK for cis-cat and for elastic at Debian based distros 2019-04-24 16:45:29 +02:00
Manuel J. Bernal
96012df2fc
Merge branch '3.9' into active_response 2019-04-04 10:45:17 +02:00
Manuel J. Bernal
deaffd9c8e
Merge pull request #159 from kravietz/email_fix
Email fix
2019-04-03 15:02:31 +02:00
l
29301b0044 Adding alias to agent config file template 2019-04-03 12:20:59 +02:00
Manuel J. Bernal
07dacae92d
Merge pull request #110 from wazuh/3.7-concurrent-packages
Installing concurrent apt packages
2019-04-01 17:30:30 +02:00
l
a9344cf181 Using list instead of iterating over one to install packages 2019-04-01 12:23:48 +02:00
joschneid
0256b529f1 make debian repos customizable 2019-03-01 14:29:02 +01:00
joschneid
6f16326905 debian repo keys with pgp keyserver 2019-03-01 14:28:02 +01:00
Pawel Krawczyk
f96ab0a317 Add flag to accept remote commands from manager
Without this flag the agent will not accept any system check
commands (`command` and `full_command`) configured in the Wazuh
Manager settings to cascade down to agents.
2019-02-20 13:31:24 +00:00
Pawel Krawczyk
bcd327280e Do not report virtual filesystems in df
Tell `df` not to report on virtual filesystems such as `squashfs` (used
by `snapd` and always at 100%), `tmpfs` (memory-only) and `devtmpfs`
(used by `udev`)
2019-02-18 13:01:42 +00:00
Pawel Krawczyk
81058daf1b Replace netstat with ss
The `ss` program is now the official replacement for `netstat` which
is deprecated in most Linux distributions. Also replace the messy sed
rules which do not work on all versions with a clean command-line that
just displays the key information that does **not** change on every
command run (e.g. PID) resulting in false positives.
2019-02-18 12:59:48 +00:00
Pawel Krawczyk
a94038201a typo 2019-02-17 20:03:30 +00:00
joschneid
6e880f7dab wrong fact for possible syscheck directories 2019-02-07 15:21:33 +01:00
joschneid
c90df8318e
Merge branch 'stable' into stable 2019-02-07 14:35:29 +01:00
AlfonsoRBJ
2030751eac Update to Wazuh version v3.8.2 2019-01-30 17:02:33 +01:00
AlfonsoRBJ
a0b3fae9d2 Update to Wazuh version 3.8.1 (#148) 2019-01-24 15:09:45 +01:00
joschneid
9a78142137 changed keyserver for better performance 2019-01-24 09:08:44 +01:00
joschneid
59c3fe0e4b make debian repos customizable 2019-01-24 09:01:16 +01:00
joschneid
82693e34f1 debian repo keys with pgp keyserver 2019-01-24 08:42:57 +01:00
AlfonsoRBJ
df95a75b6b
Merge pull request #143 from wazuh/PR-java-path
Fix oracle java cookies
2019-01-18 16:35:59 +01:00
cadoming
37bfa5be17 3.8 release 2019-01-18 15:11:40 +00:00
cadoming
949aa7f043 adapt new version (3.8.0-6.5.4) 2019-01-17 15:42:11 +00:00
cadoming
61260986c0 fixed java path 2019-01-16 16:16:06 +00:00
Carlos Dominguez
e97a0ff7a3 Labels configuration (#135) 2019-01-14 09:12:09 +01: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
Carlos Dominguez
02736e1ab3
Merge branch '3.7' into Issue_78-windows_ossec_conf 2019-01-10 13:11:03 +01:00
Carlos Dominguez
c50d2b3828
Merge pull request #117 from wazuh/Issue_91-single_agent_name
Custom name for single agent registration
2019-01-10 12:09:46 +01:00
singuliere
d33b5c90c3
cleanup: move redundant tags to the outer block 2019-01-10 10:01:06 +01:00
cadoming
620bf04835 ossec.conf for windows agents 2019-01-03 09:35:40 +00:00
Carlos Dominguez
e94a0cf473 change installation directory (#116) 2018-12-27 12:52:27 +01:00
cadoming
b5dd470c2c custom name for single agent registration 2018-12-27 10:49:34 +00:00
manuasir
96390a2d46 Installing apt packages concurrently, related #109 2018-12-19 10:22:40 +01:00
root
852d5909eb os_family localfiles 2018-12-13 13:42:15 +00:00
root
23aeeffff2 default configuration update v1 2018-12-13 10:59:13 +00:00
AlfonsoRBJ
28d6ecae5d
Merge branch '3.7' into Issue-77_conflict_configurations 2018-11-16 12:30:00 +01:00
AlfonsoRBJ
1369b3df41
Merge branch '3.7' into Issue-34_local_internal_options 2018-11-16 12:20:42 +01:00
AlfonsoRBJ
99a6a3d6b0
Merge branch '3.7' into Issue-88_version_windows_installer 2018-11-16 11:38:34 +01:00
cadoming
bdf913453e Added windows task 2018-11-16 10:34:41 +00:00
cadoming
f2b3ac68bb agent configuration and monitoring 2018-11-15 12:16:05 +00:00
cadoming
6fe87697f1 Changed windows agent version 2018-11-15 10:40:57 +00:00
cadoming
8ef5e65eb7 include template local_internal_options.conf 2018-11-14 12:13:58 +00:00
cadoming
5c1f2ed783 clean old code for windows agent 2018-11-14 10:39:25 +00:00
AlfonsoRBJ
62938ff894
Merge pull request #71 from wazuh/Amazon-Linux-support
Support for Amazon Linux added
2018-11-12 16:41:29 +01:00
AlfonsoRBJ
fcf7bf4b00
Merge pull request #79 from wazuh/PR-54_new_structure
client.keys registration triggers
2018-11-12 14:13:04 +01:00
root
5298084a62 client.keys registration triggers 2018-11-06 10:48:02 +00:00
AlfonsoRBJ
3d4e3ff67b
Merge pull request #75 from wazuh/PR-52_new_structure
active_response_disable configuration
2018-11-02 17:19:49 +01:00
root
33e9150dcd active_response_disable configuration 2018-10-31 11:50:37 +00:00
root
dcd7b1a6fd agent and manager grouping task 2018-10-31 10:49:45 +00:00
AlfonsoRBJ
2c4c6fc59c Support for Amazon Linux added
Logstash bug fixed for single server installation on Amazon Linux
2018-10-19 16:40:13 +02:00
Jesús Linares
1bd21e381b
Restructure repository (#66) 2018-10-04 12:40:10 +02:00