2
2
Wazuh
3
3
=====
4
4
5
+ `Wazuh <https://wazuh.com >`_ is a security monitoring platform.
6
+ It monitors for:
7
+
8
+ * Security-related system events.
9
+ * Known vulnerabilities (CVEs) in versions of installed software.
10
+ * Misconfigurations in system security.
11
+
5
12
The short version
6
13
=================
7
14
8
15
#. Create an infrastructure VM for the Wazuh manager, and add it to the wazuh-manager group
9
16
#. Configure the infrastructure VM with kayobe: ``kayobe infra vm host configure ``
10
17
#. Edit your config under
11
- ``etc/kayobe/inventory /group_vars/wazuh-manager/wazuh-manager ``, in
18
+ ``$KAYOBE_CONFIG_PATHinventory /group_vars/wazuh-manager/wazuh-manager ``, in
12
19
particular the defaults assume that the ``provision_oc_net `` network will be
13
20
used.
14
21
#. Generate secrets: ``kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/wazuh-secrets.yml ``
@@ -233,9 +240,12 @@ You may need to modify some of the variables, including:
233
240
- etc/kayobe/wazuh-manager.yml
234
241
- etc/kayobe/inventory/group_vars/wazuh/wazuh-agent/wazuh-agent
235
242
243
+ You'll need to run ``wazuh-manager.yml `` playbook again to apply customisation.
244
+
236
245
Secrets
237
246
-------
238
247
248
+ Wazuh requires that secrets or passwords are set for itself and the services with which it communiticates.
239
249
Wazuh secrets playbook is located in ``etc/kayobe/ansible/wazuh-secrets.yml ``.
240
250
Running this playbook will generate and put pertinent security items into secrets
241
251
vault file which will be placed in ``$KAYOBE_CONFIG_PATH/wazuh-secrets.yml ``.
@@ -250,6 +260,10 @@ It will be used by wazuh secrets playbook to generate wazuh secrets vault file.
250
260
251
261
kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/wazuh-secrets.yml
252
262
263
+ .. note :: Use ``ansible-vault`` to view the secrets:
264
+
265
+ ``ansible-vault view --vault-password-file ~/vault.password $KAYOBE_CONFIG_PATH/inventory/group_vars/wazuh-manager/wazuh-secrets.yml ``
266
+
253
267
Configure Wazuh Dashboard's Server Host
254
268
---------------------------------------
255
269
@@ -390,6 +404,25 @@ Deploy the Wazuh agents:
390
404
391
405
``kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/wazuh-agent.yml ``
392
406
407
+ The Wazuh Agent is deployed to all hosts in the ``wazuh-agent ``
408
+ inventory group, comprising the ``seed `` group
409
+ plus the ``overcloud `` group (containing all hosts in the
410
+ OpenStack control plane).
411
+
412
+ .. code-block :: ini
413
+
414
+ [wazuh-agent:children]
415
+ seed
416
+ overcloud
417
+
418
+ The hosts running Wazuh Agent should automatically be registered
419
+ and visible within the Wazuh Manager dashboard.
420
+
421
+ .. note :: It is good practice to use a `Kayobe deploy hook
422
+ <https://docs.openstack.org/kayobe/latest/custom-ansible-playbooks.html#hooks>`_
423
+ to automate deployment and configuration of the Wazuh Agent
424
+ following a run of ``kayobe overcloud host configure ``.
425
+
393
426
Verification
394
427
------------
395
428
0 commit comments