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 ``
@@ -234,9 +241,12 @@ You may need to modify some of the variables, including:
234
241
- etc/kayobe/wazuh-manager.yml
235
242
- etc/kayobe/inventory/group_vars/wazuh/wazuh-agent/wazuh-agent
236
243
244
+ You'll need to run ``wazuh-manager.yml `` playbook again to apply customisation.
245
+
237
246
Secrets
238
247
-------
239
248
249
+ Wazuh requires that secrets or passwords are set for itself and the services with which it communiticates.
240
250
Wazuh secrets playbook is located in ``etc/kayobe/ansible/wazuh-secrets.yml ``.
241
251
Running this playbook will generate and put pertinent security items into secrets
242
252
vault file which will be placed in ``$KAYOBE_CONFIG_PATH/wazuh-secrets.yml ``.
@@ -252,6 +262,10 @@ It will be used by wazuh secrets playbook to generate wazuh secrets vault file.
252
262
kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/wazuh-secrets.yml
253
263
ansible-vault encrypt --vault-password-file ~/vault.pass $KAYOBE_CONFIG_PATH/wazuh-secrets.yml
254
264
265
+ .. note :: Use ``ansible-vault`` to view the secrets:
266
+
267
+ ``ansible-vault view --vault-password-file ~/vault.password $KAYOBE_CONFIG_PATH/inventory/group_vars/wazuh-manager/wazuh-secrets.yml ``
268
+
255
269
Configure Wazuh Dashboard's Server Host
256
270
---------------------------------------
257
271
@@ -392,6 +406,25 @@ Deploy the Wazuh agents:
392
406
393
407
``kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/wazuh-agent.yml ``
394
408
409
+ The Wazuh Agent is deployed to all hosts in the ``wazuh-agent ``
410
+ inventory group, comprising the ``seed `` group
411
+ plus the ``overcloud `` group (containing all hosts in the
412
+ OpenStack control plane).
413
+
414
+ .. code-block :: ini
415
+
416
+ [wazuh-agent:children]
417
+ seed
418
+ overcloud
419
+
420
+ The hosts running Wazuh Agent should automatically be registered
421
+ and visible within the Wazuh Manager dashboard.
422
+
423
+ .. note :: It is good practice to use a `Kayobe deploy hook
424
+ <https://docs.openstack.org/kayobe/latest/custom-ansible-playbooks.html#hooks>`_
425
+ to automate deployment and configuration of the Wazuh Agent
426
+ following a run of ``kayobe overcloud host configure ``.
427
+
395
428
Verification
396
429
------------
397
430
0 commit comments