From f920b7af090ec080c5fd8f949725e04ad3115aac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matev=C5=BE=20Er=C5=BEen?= <matevz.erzen@xlab.si>
Date: Thu, 17 Feb 2022 12:29:19 +0000
Subject: [PATCH] Enabled Wazuh email alerts

---
 Makefile                              |  4 ++--
 ansible/provision-managers.yml        |  2 ++
 environments/full-setup/Vagrantfile   | 10 +++++-----
 environments/no-collector/Vagrantfile |  6 +++---
 4 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/Makefile b/Makefile
index 365b18f..2844029 100644
--- a/Makefile
+++ b/Makefile
@@ -5,8 +5,8 @@ ANSIBLE_DIR = $(DEPLOY_DIR)/ansible
 include $(ENV_DIR)/$(ENVIRONMENT).mk
 
 ANSIBLE_ARGS = -i $(ENV_DIR)/inventory.txt \
-							 -e ansible_dir=$(ANSIBLE_DIR) \
-							 -e environment_dir=$(ENV_DIR)
+							-e ansible_dir=$(ANSIBLE_DIR) \
+							-e environment_dir=$(ENV_DIR)
 
 clone-wazuh:
 	-git clone https://github.com/wazuh/wazuh-ansible.git > /dev/null 2>&1
diff --git a/ansible/provision-managers.yml b/ansible/provision-managers.yml
index 3db5bd8..6b57603 100644
--- a/ansible/provision-managers.yml
+++ b/ansible/provision-managers.yml
@@ -20,6 +20,8 @@
           hook_url: "{{ custom_integration_hook }}"
           alert_level: "{{ custom_integration_alert_level }}"
           alert_format: "{{ custom_integration_alert_format }}"
+      wazuh_manager_config:
+        email_notification: "yes"
       minimum_master_nodes: 1
       elasticsearch_node_master: true
       elasticsearch_network_host: "0.0.0.0"
diff --git a/environments/full-setup/Vagrantfile b/environments/full-setup/Vagrantfile
index 3b0684f..1365358 100644
--- a/environments/full-setup/Vagrantfile
+++ b/environments/full-setup/Vagrantfile
@@ -5,7 +5,7 @@ servers=[
   {
     :hostname => "manager",
     :ip => "192.168.33.10",
-    :box => "centos/8",
+    :box => "centos/stream8",
     :forward_ports => [{:guest => 55000, :host => 55000}, {:guest => 9200, :host => 9200}],
     :ram => 2048,
     :cpu => 2
@@ -13,28 +13,28 @@ servers=[
   {
     :hostname => "agent1",
     :ip => "192.168.33.11",
-    :box => "centos/8",
+    :box => "centos/stream8",
     :ram => 1024,
     :cpu => 1
   },
   {
     :hostname => "agent2",
     :ip => "192.168.33.12",
-    :box => "centos/8",
+    :box => "centos/stream8",
     :ram => 1024,
     :cpu => 1
   },
   {
     :hostname => "evidence-collector",
     :ip => "192.168.33.13",
-    :box => "centos/8",
+    :box => "centos/stream8",
     :ram => 1024,
     :cpu => 2
   },
   {
     :hostname => "clouditor",
     :ip => "192.168.33.14",
-    :box => "centos/8",
+    :box => "centos/stream8",
     :forward_ports => [{:guest => 9090, :host => 9090}],
     :ram => 1024,
     :cpu => 1
diff --git a/environments/no-collector/Vagrantfile b/environments/no-collector/Vagrantfile
index 33cc1da..c4dbab5 100644
--- a/environments/no-collector/Vagrantfile
+++ b/environments/no-collector/Vagrantfile
@@ -5,21 +5,21 @@ servers=[
   {
     :hostname => "manager",
     :ip => "192.168.33.10",
-    :box => "centos/8",
+    :box => "centos/stream8",
     :ram => 2048,
     :cpu => 2
   },  
   {
     :hostname => "agent1",
     :ip => "192.168.33.11",
-    :box => "centos/8",
+    :box => "centos/stream8",
     :ram => 1024,
     :cpu => 1
   },
   {
     :hostname => "agent2",
     :ip => "192.168.33.12",
-    :box => "centos/8",
+    :box => "centos/stream8",
     :ram => 1024,
     :cpu => 1
   }
-- 
GitLab