Skip to content

Commit b356c49

Browse files
authored
Merge pull request #1039 from stackhpc/2023.1-wazuh-docs
docs: Improvements & fixes for Wazuh
2 parents 7fc7f9e + 80fd8c5 commit b356c49

File tree

1 file changed

+23
-25
lines changed

1 file changed

+23
-25
lines changed

doc/source/configuration/wazuh.rst

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,43 +25,44 @@ Provision using infra-vms
2525

2626
Provisioning an infra VM for Wazuh Manager.
2727

28-
From Xena, Kayobe supports :kayobe-doc:`provisioning infra VMs <deployment.html#infrastructure-vms>`. The StackHPC fork of Kayobe has backported this to Wallaby.
28+
Kayobe supports :kayobe-doc:`provisioning infra VMs <deployment.html#infrastructure-vms>`.
2929
The following configuration may be used as a guide. Config for infra VMs is documented :kayobe-doc:`here <configuration/reference/infra-vms>`.
3030

31+
Add a Wazuh Manager host to the ``wazuh-manager`` group in ``etc/kayobe/inventory/hosts``.
3132

32-
Set the python interpreter in
33-
``etc/kayobe/inventory/group_vars/infra-vms/ansible-python-interpreter``:
33+
.. code-block:: ini
3434
35+
[wazuh-manager]
36+
os-wazuh
3537
36-
.. code-block:: console
38+
Add the ``wazuh-manager`` group to the ``infra-vms`` group in ``etc/kayobe/inventory/groups``.
3739

38-
---
39-
# Use a virtual environment for remote operations.
40-
ansible_python_interpreter: "{{ virtualenv_path }}/kayobe/bin/python"
40+
.. code-block:: ini
41+
42+
[wazuh-manager]
4143
44+
[infra-vms:children]
45+
wazuh-manager
4246
4347
Define VM sizing in ``etc/kayobe/inventory/group_vars/wazuh-manager/infra-vms``:
4448

45-
.. code-block:: console
49+
.. code-block:: yaml
4650
4751
---
4852
# Memory in MB.
4953
infra_vm_memory_mb: 16384
5054
51-
5255
# Number of vCPUs.
5356
infra_vm_vcpus: 8
5457
55-
5658
# Capacity of the infra VM data volume.
5759
infra_vm_data_capacity: "200G"
5860
59-
6061
Optional: define LVM volumes in ``etc/kayobe/inventory/group_vars/wazuh-manager/lvm``.
6162
``/var/ossec`` often requires greater storage space, and ``/var/lib/wazuh-indexer``
6263
may be beneficial too.
6364

64-
.. code-block:: console
65+
.. code-block:: yaml
6566
6667
# List of infra VM volume groups. See mrlesmithjr.manage-lvm role for
6768
# format.
@@ -83,7 +84,7 @@ Define network interfaces ``etc/kayobe/inventory/group_vars/wazuh-manager/networ
8384

8485
(The following is an example - the names will depend on your particular network configuration.)
8586

86-
.. code-block:: console
87+
.. code-block:: yaml
8788
8889
---
8990
# Overcloud provisioning network IP information.
@@ -94,7 +95,7 @@ The Wazuh manager may need to be exposed externally, in which case it may requir
9495
This can be done as follows in ``etc/kayobe/inventory/group_vars/wazuh-manager/network-interfaces``,
9596
with the network defined in ``networks.yml`` as usual.
9697

97-
.. code-block:: console
98+
.. code-block:: yaml
9899
99100
infra_vm_extra_network_interfaces:
100101
- "extra_net"
@@ -162,24 +163,21 @@ the host using kayobe, here are some tips (note that depending on your setup thi
162163

163164
``networks.yml``:
164165

165-
.. code-block:: console
166+
.. code-block:: yaml
166167
167-
undercloud_admin_net_cidr: 10.10.224.0/24
168-
undercloud_admin_net_allocation_pool_start: 10.10.224.3
169-
undercloud_admin_net_allocation_pool_end: 10.10.224.200
170-
undercloud_admin_net_gateway: 10.10.224.254
168+
provision_oc_net_cidr: 10.10.224.0/24
169+
provision_oc_net_allocation_pool_start: 10.10.224.3
170+
provision_oc_net_allocation_pool_end: 10.10.224.200
171+
provision_oc_net_gateway: 10.10.224.254
171172
172173
173174
``network-allocation.yml``:
174175

175-
.. code-block:: console
176+
.. code-block:: yaml
176177
177-
undercloud_admin_net_ips:
178+
provision_oc_net_ips:
178179
nesmetprd01: 10.10.224.5
179180
180-
Note that in this example network name is ``undercloud`` to demonstrate that this network isn't "standard" kayobe network.
181-
182-
183181
Deploying Wazuh Manager services
184182
================================
185183

@@ -188,7 +186,7 @@ Setup
188186

189187
To install a specific version modify the wazuh-ansible entry in ``etc/kayobe/ansible/requirements.yml``:
190188

191-
.. code-block:: console
189+
.. code-block:: yaml
192190
193191
roles:
194192
- name: wazuh-ansible

0 commit comments

Comments
 (0)