Configuring Global Variables in Ansible

Review the configuration of the global variables in the Ansible file all.yml, located in the following location:

Bash
Copy

File Example

Bash
Copy

If all of the machines in the cluster have persistent memory (DCPMM) installed, the persistent_memory flag must be set as follows:

Bash
Copy

If there are machines in the cluster that do not have PMEM installed, set this flag to false.

Since the persistent_memory flag is a global property for all of the clusters, it is important to declare this flag only once under the all.yml file and not in host vars files with different values.

ipacl_explicit_allow

Support for restricted/non-restricted access to a cluster's data ports (nvme/tcp and discovery service). In restricted mode (ipacl_explicit_allow = true), the Lightbits cluster will maintain an allowed list of IPs per volume that allows clients to access this volume. In unrestricted mode (ipacl_explicit_allow = false), any IP address can be used to access the data ports. Any further port restrictions should be managed by your FW rules.

See IP ACL Configuration for additional information.

Chrony

Chrony is the default network synchronization method for Lightbits clusters.

Bash
Copy

Chrony

In Chrony configurations - which are the default for Red Hat 8 based releases and onward - configure the all.yml settings.

Make sure that the Chrony service is configured on your servers before the installation.

Verify that the date and time are in sync on the Lightbits storage servers and the Ansible installation host. You can use date and run it simultaneously on all servers.

Listen on All Interfaces

Configure the frontend to bind to all network interfaces, rather than a specific one.

Bash
Copy

This setting is applicable only in single-node deployments. With this special mode, direct NVMe connections to specific IP addresses are required over using the discovery client.

Online Repo Information

Bash
Copy
  • The section describes from where Lightbits will be installed. In this case/example, the repo URL is provided, as this uses the online method. However, for the offline installation method, this section is different. For more, see Single-IP-Dual-NUMA Configuration.
  • The "local___repo_base_url" field must be filled in with the <TOKEN> and the remainder of the URI, to properly direct the Ansible installation to the correct Lightbits repository. Different release versions will have slightly different paths. The “local_repo_base_url” must be correct or else the installation will fail. This can be a Cloudsmith link or any HTTP/HTTPS accessible point in the local network or internet. The link must point to a valid yum repo with a "repodata" directory. The value is used by Ansible for the the baseurl key in /etc/yum.repos.d/lightos.repo. The $basearch variable is replaced by the OS automatically with the architecture of the Lightbits server (e.g., x86_64).
  • Also in this example, there is a “local_repo_base_url” entry that includes <YOUR_TOKEN>. This information was provided to you in the Lightbits Customer Addendum. You will need to enter this value here before proceeding.

Server Variables

VariableRequiredDescription
local_repo_base_urlYesMandatory unless offline installation is used. This is the same value entered for the “baseurl” you configured in the auto$ section.
auto_rebootNoA False value means that the installation will wait for user instructions to either reboot or not after installation. A True value means that the installation will reboot in case of a kernel change without user instructions. The default value is False (recommended value).
clusterIDNoAn identifier of the cluster that is used to filter the logs of a specific cluster.

Offline Installations

Bash
Copy
  • source_type: Set to "offline" for offline installations. The default is "online".
  • source_etcd_binary, source_rpms_dir, source_dependencies_rpms_dir: Direct paths on the Ansible host to the etcd binary, RPMs, and dependencies directories. Paths must be relative to where the Ansible command is run (baremetal host or inside Docker).
  • dest_dir: Where RPM packages are stored on the Lightbits node during installation.

Online installations download packages from the baseurl, while offline installs have packages sent by Ansible and are manually installed with the local yum install.

Single IP Dual NUMA Configuration

To use ansible_ssh_private_key_file instead of ansible_ssh_pass, see auto$.

The Single IP dual NUMA configuration (see Single-IP-Dual-NUMA Configuration), requires changes to the all.yml file. Follow the directions in that section to properly configure this setup.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard