This repository has been archived by the owner on Jul 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from wazuh/wazuh-release-v3.11.0_7.5.1
Wazuh release v3.11.0_7.5.1
- Loading branch information
Showing
15 changed files
with
117 additions
and
13 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 +1 @@ | ||
default['wazuh-agent']['version'] = "3.10.2" | ||
default['wazuh-agent']['version'] = "3.11.0" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
default['mginx']['user'] = 'user1' | ||
default['mginx']['password'] = 'nginx1' |
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,3 +1,3 @@ | ||
default['wazuh-elastic']['elastic_stack_version'] = '7.3.2' | ||
default['wazuh-elastic']['wazuh_app_version'] = "3.10.2_7.3.2" | ||
default['wazuh-elastic']['extensions_version'] = "v3.10.2" | ||
default['wazuh-elastic']['elastic_stack_version'] = '7.5.1' | ||
default['wazuh-elastic']['wazuh_app_version'] = "3.11.0_7.5.1" | ||
default['wazuh-elastic']['extensions_version'] = "v3.11.0" |
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 |
---|---|---|
|
@@ -20,3 +20,4 @@ | |
depends 'poise-python' | ||
depends 'yum' | ||
depends 'hostsfile' | ||
depends 'htpasswd' |
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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
if platform_family?('rhel', 'redhat', 'centos', 'amazon') | ||
yum_package 'epel-release' do | ||
action :install | ||
end | ||
end | ||
|
||
|
||
if platform_family?('debian', 'ubuntu') | ||
apt_package 'nginx' do | ||
action :install | ||
end | ||
elsif platform_family?('rhel', 'redhat', 'centos', 'amazon') | ||
yum_package 'nginx' do | ||
action :install | ||
end | ||
else | ||
raise "Platform Family is not in {'debian', 'ubuntu', 'rhel', 'redhat', 'centos', 'amazon'} - Not Supported" | ||
end | ||
|
||
|
||
directory '/etc/nginx/sites-available' do | ||
mode '0755' | ||
recursive true | ||
action :create | ||
end | ||
|
||
directory '/etc/nginx/sites-enabled' do | ||
mode '0755' | ||
recursive true | ||
action :create | ||
end | ||
|
||
directory '/etc/ssl/certs' do | ||
mode '0755' | ||
recursive true | ||
action :create | ||
end | ||
|
||
directory '/etc/ssl/private' do | ||
mode '0755' | ||
recursive true | ||
action :create | ||
end | ||
|
||
bash 'Generate a self-signed ceritificate and a key' do | ||
code <<-EOH | ||
openssl req -x509 -batch -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/kibana-access.key -out /etc/ssl/certs/kibana-access.pem | ||
EOH | ||
end | ||
|
||
template '/etc/nginx/conf.d/kibana.conf' do | ||
source 'nginx.erb' | ||
owner 'root' | ||
group 'root' | ||
mode '0644' | ||
end | ||
|
||
if platform_family?('debian', 'ubuntu') | ||
apt_package 'apache2-utils' do | ||
action :install | ||
end | ||
end | ||
|
||
|
||
node.override['htpasswd']['install_method'] = 'ruby' | ||
include_recipe 'htpasswd::default' | ||
|
||
htpasswd "/etc/nginx/conf.d/kibana.htpasswd" do | ||
user "#{node['mginx']['user']}" | ||
password "#{node['mginx']['password']}" | ||
end | ||
|
||
service "nginx" do | ||
supports :start => true, :stop => true, :restart => true, :reload => true | ||
action [:restart] | ||
end |
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,14 @@ | ||
server { | ||
listen 443 default_server; | ||
listen [::]:443; | ||
ssl on; | ||
ssl_certificate /etc/ssl/certs/kibana-access.pem; | ||
ssl_certificate_key /etc/ssl/private/kibana-access.key; | ||
access_log /var/log/nginx/nginx.access.log; | ||
error_log /var/log/nginx/nginx.error.log; | ||
location / { | ||
auth_basic "Restricted"; | ||
auth_basic_user_file /etc/nginx/conf.d/kibana.htpasswd; | ||
proxy_pass http://localhost:5601/; | ||
} | ||
} |
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,4 +1,4 @@ | ||
default['filebeat']['elastic_stack_version'] = '7.3.2' | ||
default['filebeat']['wazuh_app_version'] = "3.10.2_7.3.2" | ||
default['filebeat']['extensions_version'] = "v3.10.2" | ||
default['filebeat']['elastic_stack_version'] = '7.5.1' | ||
default['filebeat']['wazuh_app_version'] = "3.11.0_7.5.1" | ||
default['filebeat']['extensions_version'] = "v3.11.0" | ||
default['filebeat']['wazuh_filebeat_module'] = "wazuh-filebeat-0.1.tar.gz" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
default['wazuh-manager']['version'] = "3.10.2" | ||
default['wazuh-manager']['version'] = "3.11.0" |