Preparing the KUMA inventory file
Expand all | Collapse all
The KUMA inventory file is a file in the YAML format that contains installation parameters for deployment of the KUMA services that are not included in the Kubernetes cluster. The path to the KUMA inventory file is included in the configuration file that is used by Kaspersky Deployment Toolkit for the Kaspersky Next XDR Expert deployment.
The templates of the KUMA inventory file are located in the distribution package. If you want to install the KUMA services (storage, collector, and correlator) on one host, use the single.inventory.yaml file. To install the services on several hosts in the network infrastructure, use the distributed.inventory.yaml file.
We recommend backing up the KUMA inventory file that you used to install the KUMA services. You can use it to remove KUMA.
To prepare the KUMA inventory file,
Open the KUMA inventory file template located in the distribution package, and then edit the variables in the inventory file.
The KUMA inventory file contains the following blocks:
- allblock- The - allblock contains the variables that are applied to all hosts specified in the inventory file. The variables are located in the- varssection.
 
- kumablock- The - kumablock contains the variables that are applied to hosts on which the KUMA services will be installed. These hosts are listed in the- kumablock in the- childrensection. The variables are located in the- varssection.
 
The following table lists possible variables, their descriptions, possible values, and blocks of the KUMA inventory file where these variables can be located.
List of possible variables in the vars section
|  |  |  |  | 
| Variable | Description | Possible values | Block | 
| Variables located in the varssection of theallandkumablocks | 
| ansible_connection
 | Method used to connect to the KUMA service hosts. | ssh—Connection to the target hosts via SSH is established.local—No connection to the target hosts is established.
 To provide the correct installation of the KUMA services, in the allblock, set theansible_connectionvariable tolocal. In the kumablock, you must specify theansible_connectionvariable and setansible_connectiontosshto provide the connection to the hosts on which the KUMA services are installed via SSH. |  | 
| ansible_user
 | User name used to connect to KUMA service hosts to install external KUMA services. | If the root user is blocked on the target hosts, specify a user name that has the right to establish SSH connections and elevate privileges by using su or sudo. To provide the correct installation of the KUMA services, in the allblock, set theansible_uservariable tononroot. In the kumablock, you must override theansible_uservariable and setansible_userto the username of the account that can connect to remote hosts via SSH, to prepare them for the installation of the KUMA services. |  | 
| deploy_example_services
 | Variable used to indicate the creation of predefined services during installation. |  | all
 | 
| deploy_ngfw_service
 | Variable used to indicate the creation of services for Kaspersky NGFW. |  | all
 | 
| ansible_become
 | Variable used to indicate the need to increase the privileges of the user account that is used to install KUMA components. | false—If theansible_uservalue isroot.true—If theansible_uservalue is notroot.
 | kuma
 | 
| ansible_become_method
 | Method used for increasing the privileges of the user account that is used to install KUMA components. | suorsudoif theansible_uservalue is notroot.
 | kuma
 | 
| Variables located in the childrensection of thekumablock | 
| kuma_utils
 | Group of hosts used for storing the service files and utilities of KUMA. A host can be included in the kuma_utilsgroup and in thekuma_collector,kuma_correlator, orkuma_storagegroup at the same time. Thekuma_utilsgroup can contain multiple hosts. During the Kaspersky Next XDR Expert deployment, on the hosts that are included in kuma_utils, the following files are copied to the/opt/kaspersky/kuma/utils/directory: kuma is an executable file with which the KUMA services are installed.kuma.exe is an executable file with which the KUMA agents are installed on Windows-based hosts.LEGAL_NOTICES is a file with information about third-party code.maxpatrol-tool, kuma-ptvm.tar.gz are utilities for integration with MaxPatrol.ootb-content is an archive with out of the box resources for the KUMA services.
 | The group of hosts contains the ansible_hostvariable that specifies the unique host FQDN and IP address. | kuma
 | 
| kuma_collector
 | Group of KUMA collector hosts. This group can contain multiple hosts. | The group of KUMA collector hosts contains the ansible_hostvariable that specifies the unique host FQDN and IP address.If the
 deploy_ngfw_servicesvariable is set totrue, the [OOTB] Kaspersky NGWF collector is deployed on a host from this group. If thedeploy_ngfw_servicesvariable is set tofalseand thedeploy_example_servicesvariable is set to true, the demonstration services are deployed on the host including the [OOTB] Kaspersky NGFW collector. | kuma
 | 
| kuma_correlator
 | Group of KUMA correlator hosts. This group can contain multiple hosts. | The group of KUMA correlator hosts contains the ansible_hostvariable that specifies the unique host FQDN and IP address. | kuma
 | 
| kuma_storage
 | Group of KUMA storage hosts. This group can contain multiple hosts. | The group of KUMA storage hosts contains the ansible_hostvariable that specifies the unique host FQDN and IP address. In this group, you can also specify the storage structure if you install the example services during the demonstration deployment (deploy_example_services: true). For the standard deployment (deploy_example_services: false), specify the storage structure in the KUMA Console interface. | kuma
 | 
Sample of the KUMA inventory file template for installation of the KUMA services on a single host (the single.inventory.yaml file)
all:
vars:
deploy_example_services: false
ansible_connection: local
ansible_user: nonroot
kuma:
vars:
ansible_connection: ssh
ansible_user: root
children:
kuma_utils:
hosts:
kuma.example.com:
    ansible_host: 0.0.0.0
kuma_collector:
hosts:
kuma.example.com:
    ansible_host: 0.0.0.0
kuma_correlator:
hosts:
kuma.example.com:
    ansible_host: 0.0.0.0
kuma_storage:
hosts:
kuma.example.com:
    ansible_host: 0.0.0.0
    shard: 1
    replica: 1
    keeper: 1
Sample of the KUMA inventory file template for installation of the KUMA services on several hosts (the distributed.inventory.yaml file)
all:
vars:
deploy_example_services: false
ansible_connection: local
ansible_user: nonroot
kuma:
vars:
ansible_connection: ssh
ansible_user: root
children:
kuma_utils:
hosts:
kuma-utils.example.com:
ansible_host: 0.0.0.0
kuma_collector:
hosts:
kuma-collector-1.example.com:
ansible_host: 0.0.0.0
kuma_correlator:
hosts:
kuma-correlator-1.example.com:
ansible_host: 0.0.0.0
kuma_storage:
hosts:
kuma-storage-1.example.com:
    ansible_host: 0.0.0.0
    shard: 1
    replica: 1
    keeper: 1
kuma-storage-2.example.com:
    ansible_host: 0.0.0.0
    shard: 1
    replica: 2
    keeper: 2
kuma-storage-3.example.com:
    ansible_host: 0.0.0.0
    shard: 2
    replica: 1
    keeper: 3
kuma-storage-4.example.com:
    ansible_host: 0.0.0.0
    shard: 2
    replica: 2