stackhpc.gluster-cluster
Gluster Cluster
This is a simple and specific setup for creating a Gluster cluster that uses one volume across multiple servers.
The setup will try to use all the servers that are part of the play.
Requirements
Currently, only CentOS servers are supported.
All servers must have the same block devices. In particular, the block devices listed in
gluster_cluster_block_devices
must be present on all servers in the cluster.
Required Settings
gluster_cluster_volume_name
: The name of the Gluster volume you want to create.gluster_cluster_block_devices
: A list of block devices to use for creating bricks.gluster_cluster_transport_interface
: For example,ib0
orenp0s1
.gluster_cluster_transport_mode
: Can be eithertcp
orrdma
.
Optional Settings
gluster_cluster_hosts
: By default, this uses all servers in thegluster_cluster_storage_group_name
group. These are the servers that provide the bricks for the volume in the Gluster cluster.gluster_cluster_storage_group_name
: Defaults tostorage
. This is the Ansible group name for storage servers from the inventory file.gluster_cluster_volume_options
: A dictionary of options for the Gluster volume.gluster_cluster_volume_base_path
: The main folder where volumes will be stored.gluster_cluster_stripes
: Defaults to0
. See documentation for more info.gluster_cluster_disperses
: Defaults to0
. See documentation for more info.gluster_cluster_replicas
: Defaults to0
. See documentation for more info.gluster_cluster_redundancies
: Defaults to0
. See documentation for more info.
Dependencies
None
Example Playbook
The following playbook sets up a Gluster volume:
---
- name: Configure Gluster
hosts: storage
roles:
- role: gluster-cluster
gluster_cluster_volume_name: my_volume
gluster_cluster_block_devices:
- sdb
- sdc
- sdd
gluster_cluster_transport_interface: ib0
gluster_cluster_transport_mode: rdma
gluster_cluster_volume_options:
cluster.nufa: 'on'
Author Information
- Doug Szumski (doug@stackhpc.com)
Informazioni sul progetto
Lightweight and opinionated role to deploy a Gluster cluster.
Installa
ansible-galaxy install stackhpc.gluster-cluster
Licenza
apache-2.0
Download
169
Proprietario
StackHPC develops OpenStack capabilities for research computing use cases. Through extensive experience, we understand HPC and cloud.