@@ -34,14 +34,14 @@ Provisioning an infra VM for Wazuh Manager.
34
34
Kayobe supports :kayobe-doc: `provisioning infra VMs <deployment.html#infrastructure-vms> `.
35
35
The following configuration may be used as a guide. Config for infra VMs is documented :kayobe-doc: `here <configuration/reference/infra-vms> `.
36
36
37
- Add a Wazuh Manager host to the ``wazuh-manager `` group in ``etc/kayobe /inventory/hosts ``.
37
+ Add a Wazuh Manager host to the ``wazuh-manager `` group in ``$KAYOBE_CONFIG_PATH /inventory/hosts ``.
38
38
39
39
.. code-block :: ini
40
40
41
41
[wazuh-manager]
42
42
os-wazuh
43
43
44
- Add the ``wazuh-manager `` group to the ``infra-vms `` group in ``etc/kayobe /inventory/groups ``.
44
+ Add the ``wazuh-manager `` group to the ``infra-vms `` group in ``$KAYOBE_CONFIG_PATH /inventory/groups ``.
45
45
46
46
.. code-block :: ini
47
47
@@ -50,7 +50,7 @@ Add the ``wazuh-manager`` group to the ``infra-vms`` group in ``etc/kayobe/inven
50
50
[infra-vms:children]
51
51
wazuh-manager
52
52
53
- Define VM sizing in ``etc/kayobe /inventory/group_vars/wazuh-manager/infra-vms ``:
53
+ Define VM sizing in ``$KAYOBE_CONFIG_PATH /inventory/group_vars/wazuh-manager/infra-vms ``:
54
54
55
55
.. code-block :: yaml
56
56
@@ -64,7 +64,7 @@ Define VM sizing in ``etc/kayobe/inventory/group_vars/wazuh-manager/infra-vms``:
64
64
# Capacity of the infra VM data volume.
65
65
infra_vm_data_capacity : " 200G"
66
66
67
- Optional: define LVM volumes in ``etc/kayobe /inventory/group_vars/wazuh-manager/lvm ``.
67
+ Optional: define LVM volumes in ``$KAYOBE_CONFIG_PATH /inventory/group_vars/wazuh-manager/lvm ``.
68
68
``/var/ossec `` often requires greater storage space, and ``/var/lib/wazuh-indexer ``
69
69
may be beneficial too.
70
70
@@ -86,7 +86,7 @@ may be beneficial too.
86
86
create : true
87
87
88
88
89
- Define network interfaces ``etc/kayobe /inventory/group_vars/wazuh-manager/network-interfaces ``:
89
+ Define network interfaces ``$KAYOBE_CONFIG_PATH /inventory/group_vars/wazuh-manager/network-interfaces ``:
90
90
91
91
(The following is an example - the names will depend on your particular network configuration.)
92
92
@@ -98,7 +98,7 @@ Define network interfaces ``etc/kayobe/inventory/group_vars/wazuh-manager/networ
98
98
99
99
100
100
The Wazuh manager may need to be exposed externally, in which case it may require another interface.
101
- This can be done as follows in ``etc/kayobe /inventory/group_vars/wazuh-manager/network-interfaces ``,
101
+ This can be done as follows in ``$KAYOBE_CONFIG_PATH /inventory/group_vars/wazuh-manager/network-interfaces ``,
102
102
with the network defined in ``networks.yml `` as usual.
103
103
104
104
.. code-block :: yaml
@@ -190,7 +190,7 @@ Deploying Wazuh Manager services
190
190
Setup
191
191
-----
192
192
193
- To install a specific version modify the wazuh-ansible entry in ``etc/kayobe /ansible/requirements.yml ``:
193
+ To install a specific version modify the wazuh-ansible entry in ``$KAYOBE_CONFIG_PATH /ansible/requirements.yml ``:
194
194
195
195
.. code-block :: yaml
196
196
@@ -211,7 +211,7 @@ Edit the playbook and variables to your needs:
211
211
Wazuh manager configuration
212
212
---------------------------
213
213
214
- Wazuh manager playbook is located in ``etc/kayobe /ansible/wazuh-manager.yml ``.
214
+ Wazuh manager playbook is located in ``$KAYOBE_CONFIG_PATH /ansible/wazuh-manager.yml ``.
215
215
Running this playbook will:
216
216
217
217
* generate certificates for wazuh-manager
@@ -221,7 +221,7 @@ Running this playbook will:
221
221
* setup and deploy wazuh-dashboard on wazuh-manager vm
222
222
* copy certificates over to wazuh-manager vm
223
223
224
- Wazuh manager variables file is located in ``etc/kayobe /inventory/group_vars/wazuh-manager/wazuh-manager ``.
224
+ Wazuh manager variables file is located in ``$KAYOBE_CONFIG_PATH /inventory/group_vars/wazuh-manager/wazuh-manager ``.
225
225
226
226
You may need to modify some of the variables, including:
227
227
@@ -232,27 +232,27 @@ You may need to modify some of the variables, including:
232
232
233
233
If you are using multiple environments, and you need to customise Wazuh in
234
234
each environment, create override files in an appropriate directory,
235
- for example ``etc/kayobe /environments/production/inventory/group_vars/ ``.
235
+ for example ``$KAYOBE_CONFIG_PATH /environments/production/inventory/group_vars/ ``.
236
236
237
237
Files which values can be overridden (in the context of Wazuh):
238
238
239
- - etc/kayobe /inventory/group_vars/wazuh/wazuh-manager/wazuh-manager
240
- - etc/kayobe /wazuh-manager.yml
241
- - etc/kayobe /inventory/group_vars/wazuh/wazuh-agent/wazuh-agent
239
+ - $KAYOBE_CONFIG_PATH /inventory/group_vars/wazuh/wazuh-manager/wazuh-manager
240
+ - $KAYOBE_CONFIG_PATH /wazuh-manager.yml
241
+ - $KAYOBE_CONFIG_PATH /inventory/group_vars/wazuh/wazuh-agent/wazuh-agent
242
242
243
243
You'll need to run ``wazuh-manager.yml `` playbook again to apply customisation.
244
244
245
245
Secrets
246
246
-------
247
247
248
248
Wazuh requires that secrets or passwords are set for itself and the services with which it communiticates.
249
- Wazuh secrets playbook is located in ``etc/kayobe /ansible/wazuh-secrets.yml ``.
249
+ Wazuh secrets playbook is located in ``$KAYOBE_CONFIG_PATH /ansible/wazuh-secrets.yml ``.
250
250
Running this playbook will generate and put pertinent security items into secrets
251
251
vault file which will be placed in ``$KAYOBE_CONFIG_PATH/wazuh-secrets.yml ``.
252
252
If using environments it ends up in ``$KAYOBE_CONFIG_PATH/environments/<env_name>/wazuh-secrets.yml ``
253
253
Remember to encrypt!
254
254
255
- Wazuh secrets template is located in ``etc/kayobe /ansible/templates/wazuh-secrets.yml.j2 ``.
255
+ Wazuh secrets template is located in ``$KAYOBE_CONFIG_PATH /ansible/templates/wazuh-secrets.yml.j2 ``.
256
256
It will be used by wazuh secrets playbook to generate wazuh secrets vault file.
257
257
258
258
@@ -380,7 +380,7 @@ Verification
380
380
------------
381
381
382
382
The Wazuh portal should be accessible on port 443 of the Wazuh
383
- manager’s IPs (using HTTPS, with the root CA cert in ``etc/kayobe /ansible/wazuh/certificates/wazuh-certificates/root-ca.pem ``).
383
+ manager’s IPs (using HTTPS, with the root CA cert in ``$KAYOBE_CONFIG_PATH /ansible/wazuh/certificates/wazuh-certificates/root-ca.pem ``).
384
384
The first login should be as the admin user,
385
385
with the opendistro_admin_password password in ``$KAYOBE_CONFIG_PATH/wazuh-secrets.yml ``.
386
386
This will create the necessary indices.
@@ -392,9 +392,9 @@ Logs are in ``/var/log/wazuh-indexer/wazuh.log``. There are also logs in the jou
392
392
Wazuh agents
393
393
============
394
394
395
- Wazuh agent playbook is located in ``etc/kayobe /ansible/wazuh-agent.yml ``.
395
+ Wazuh agent playbook is located in ``$KAYOBE_CONFIG_PATH /ansible/wazuh-agent.yml ``.
396
396
397
- Wazuh agent variables file is located in ``etc/kayobe /inventory/group_vars/wazuh-agent/wazuh-agent ``.
397
+ Wazuh agent variables file is located in ``$KAYOBE_CONFIG_PATH /inventory/group_vars/wazuh-agent/wazuh-agent ``.
398
398
399
399
You may need to modify some variables, including:
400
400
0 commit comments