linux-gluster

GitHub issues GitHub GitHub forks GitHub stars

Install and configure gluster in HA mode

Ansible role used to install and configure gluster, NFS ganesha and pacemaker for HA

Requirements

Install ansible, ipaddr and netaddr:

pip install -r requirements.txt

Download the role form GitHub:

ansible-galaxy install git+https://github.com/garutilorenzo/ansible-role-linux-gluster.git

Your inventory file must have the following groups:

  • gluster

Role Variables

NOTE: only replicated volume supported at the moment

This role accept this variables:

Var Required Default Desc
gluster_vip_ip yes dns Gluster VIP ip used for HA. Must be in the network subnet where gluster and pacemaker daemon are listening
hacluster_password yes dns Secrets used for hacluster user
gluster_subnet no `` If the server have multiple network interfaces, specify the subnet where the gluster and pacemaker daemon are listening.
gluster_resolv_mode no dns Determinate how nodes will be resolved, used for local testing purposes where dns is not available.
gluster_volume no example The name of the NFS volume exposed by NFS ganesha
gluster_path no /tank/ Gluster local storage directory
gluster_volume_type no replica Gluster volume type `stripe
gluster_volume_replica_count_type no 3 Gluster local storage directory

Example playbook

Here one example playbook:

- hosts: gluster
  become: yes
  remote_user: vagrant
  roles: 
    - role: ansible-role-linux-gluster

TODO

  • Support for striped and disperse volume
  • Create the FS not only the directory
About

Install and configure a gluster, NFS ganesha and pacemaker

Install
ansible-galaxy install garutilorenzo/ansible-role-linux-gluster
GitHub repository
License
gpl-3.0
Downloads
2
Owner
☁️ Multi Cloud solution architect • 🖥️ Linux system engineer • 🚀 DevOps • 👨‍💻Software developer