Using this repo you can configure a three node cluster of Gluster storage in your environment using Ansible automation tool.
Prerequisits :
For Ansible Deployment all nodes must conatin a passwordless ssh connection from Ansible server and
Gluster should be Installed on each node in your environment. You can refer following repository
For centos :
http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-epel.repo
For Fedora :
http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
git clone https://github.com/samkandarkar/Ansible-GlusterDeploy.git
[nodes]
IP1 (Can be master's IP)
IP2
IP3
[master]
Master_IP
To Configure the environment for gluster storage cluster you have to play the file "run.yml" which will invoke Ansible galaxy roles in Ansible-GlusterDeploy folder.
Before running the playbook , users must change the values in the file "Ansible-GlusterDeploy/vars/main.yml".
There is example available for configuration of vars file in Ansible-GlusterDeploy/README.md
After doing all configurations releted to your requirement run the followingcommand
ansible-playbook run.yml