stackhpc.gluster-cluster

Gluster 集群

这是一个轻量级且有特定观点的角色,旨在配置 Gluster 集群,管理一个单一的卷,并跨多个节点运行。

该角色会尝试使用在剧本中活动的所有主机。

需求

  • 目前仅支持 CentOS 主机。

  • 主机在块设备方面必须是同质的。特别是 gluster_cluster_block_devices 中指定的块设备必须在集群中的所有节点上存在。

角色变量(必填)

  • gluster_cluster_volume_name: 要创建的 Gluster 卷的名称。
  • gluster_cluster_block_devices: 用于创建砖块的块设备列表。
  • gluster_cluster_transport_interface: 例如: ib0enp0s1
  • gluster_cluster_transport_mode: 可以是 tcprdma

角色变量(选填)

  • gluster_cluster_hosts: 默认为 gluster_cluster_storage_group_name 组中的所有主机。提供 Gluster 集群中卷砖块的主机。
  • gluster_cluster_storage_group_name: 默认为 storage。来自清单文件的存储主机的 Ansible 组名。
  • gluster_cluster_volume_options: Gluster 卷选项的字典。
  • gluster_cluster_volume_base_path: 存储卷的基础文件夹。
  • gluster_cluster_stripes: 默认为 0。查看 [1]。
  • gluster_cluster_disperses: 默认为 0。查看 [1]。
  • gluster_cluster_replicas: 默认为 0。查看 [1]。
  • gluster_cluster_redundancies: 默认为 0。查看 [1]。

[1] https://docs.gluster.org/en/v3/Administrator%20Guide/Setting%20Up%20Volumes/

依赖关系

示例剧本

以下剧本配置一个 Gluster 卷:

---
- name: 配置 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'

作者信息

关于项目

Lightweight and opinionated role to deploy a Gluster cluster.

安装
ansible-galaxy install stackhpc.gluster-cluster
许可证
apache-2.0
下载
169
拥有者
StackHPC develops OpenStack capabilities for research computing use cases. Through extensive experience, we understand HPC and cloud.