-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'devel' into wazuh-agent-fixes
- Loading branch information
Showing
64 changed files
with
3,352 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
WAZUH-ANSIBLE_VERSION="v4" | ||
REVISION="31140" | ||
REVISION="31220" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
- hosts: managers | ||
roles: | ||
# - role: ../roles/wazuh/ansible-wazuh-manager | ||
- role: ../roles/wazuh/ansible-filebeat-oss | ||
filebeat_output_elasticsearch_hosts: | ||
- "172.16.0.161:9200" | ||
- "172.16.0.162:9200" | ||
- "172.16.0.163:9200" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
- hosts: es1 | ||
roles: | ||
- role: ../roles/opendistro/opendistro-kibana |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
- hosts: es_cluster | ||
roles: | ||
- role: ../roles/opendistro/opendistro-elasticsearch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
roles/opendistro/opendistro-elasticsearch/defaults/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
# The OpenDistro version | ||
opendistro_version: 1.8.0 | ||
elasticsearch_cluster_name: wazuh-cluster | ||
|
||
# Minimum master nodes in cluster, 2 for 3 nodes elasticsearch cluster | ||
minimum_master_nodes: 2 | ||
|
||
# Elasticsearch version | ||
es_version: "7.3.2" | ||
es_major_version: "7.x" | ||
|
||
# Configure hostnames for Elasticsearch nodes | ||
# Example es1.example.com, es2.example.com | ||
domain_name: wazuh.com | ||
|
||
# The OpenDistro package repository | ||
package_repos: | ||
yum: | ||
opendistro: | ||
baseurl: 'https://d3g5vo6xdbdb9a.cloudfront.net/yum/noarch/' | ||
gpg: 'https://d3g5vo6xdbdb9a.cloudfront.net/GPG-KEY-opendistroforelasticsearch' | ||
elasticsearch_oss: | ||
baseurl: 'https://artifacts.elastic.co/packages/oss-7.x/yum' | ||
gpg: 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' | ||
|
||
opendistro_sec_plugin_conf_path: /usr/share/elasticsearch/plugins/opendistro_security/securityconfig | ||
opendistro_sec_plugin_tools_path: /usr/share/elasticsearch/plugins/opendistro_security/tools | ||
opendistro_conf_path: /etc/elasticsearch/ | ||
es_nodes: |- | ||
{% for item in groups['es_cluster'] -%} | ||
{{ hostvars[item]['ip'] }}{% if not loop.last %}","{% endif %} | ||
{%- endfor %} | ||
# Security password | ||
opendistro_security_password: admin | ||
# Set JVM memory limits | ||
opendistro_jvm_xms: null | ||
|
||
opendistro_http_port: 9200 | ||
|
||
certs_gen_tool_version: 1.7 | ||
# Url of Search Guard certificates generator tool | ||
certs_gen_tool_url: "https://releases.floragunn.com/search-guard-tlstool/{{ certs_gen_tool_version }}/search-guard-tlstool-{{ certs_gen_tool_version }}.zip" | ||
|
||
elasticrepo: | ||
apt: 'https://artifacts.elastic.co/packages/7.x/apt' | ||
yum: 'https://artifacts.elastic.co/packages/7.x/yum' | ||
gpg: 'https://artifacts.elastic.co/GPG-KEY-opendistro' | ||
key_id: '46095ACC8548582C1A2699A9D27D666CD88E42B4' | ||
|
||
opendistro_admin_password: changeme | ||
opendistro_kibana_password: changeme | ||
# Cluster Settings | ||
single_node: true | ||
opendistro_cluster_name: wazuh | ||
|
||
local_certs_path: /tmp/opendistro-nodecerts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
- name: restart elasticsearch | ||
service: | ||
name: elasticsearch | ||
state: restarted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
galaxy_info: | ||
author: Wazuh | ||
description: Installing and maintaining Opendistro server. | ||
company: wazuh.com | ||
license: license (GPLv3) | ||
min_ansible_version: 2.0 | ||
platforms: | ||
- name: EL | ||
versions: | ||
- all | ||
- name: Ubuntu | ||
versions: | ||
- all | ||
- name: Debian | ||
versions: | ||
- all | ||
- name: Fedora | ||
versions: | ||
- all | ||
galaxy_tags: | ||
- web | ||
- system | ||
- monitoring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- name: RedHat/CentOS/Fedora | Remove Elasticsearch repository (and clean up left-over metadata) | ||
yum_repository: | ||
name: opendistro_repo | ||
state: absent | ||
changed_when: false |
Oops, something went wrong.