Skip to content

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

License

Notifications You must be signed in to change notification settings

garutilorenzo/ansible-role-linux-gluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages