git clone https://github.com/gluster/gdeploy.git
cd gdeploy
Make sure you have gcc and python-devel installed
yum install gcc python-devel
pip install -r requirements.txt
python-setuptools is needed to run setup.py, lookup specific pacakage in your distribution and install it.
If [backend-setup] or any other lvm releated sections are used, ensure to install lvm2 package.
Run the gdeploy_setup.sh file from the root directory of gdeploy
./gdeploy_setup.sh
OR
Setup manually as follows
- Add ansible modules to ANSIBLE_LIBRARY environment variable
echo "export ANSIBLE_LIBRARY=$ANSIBLE_LIBRARY:'/path/to/gdeploy/modules/'" >> ~/.bashrc
- Add ansible playbooks(inside the templates directory) to GDEPLOY_TEMPLATES environment variable
echo "export GDEPLOY_TEMPLATES='path/to/gdeploy'" >> ~/.bashrc
- Install glusterlib module using setuptools
python setup.py install
To use the framework create a configuration file as per your needs. Follow the instructions here to create your configuration file. An example configuration file can be found here
See gdeploy.conf(5) manpage for more details.
To set-up back-end and deploy GlusterFS in the specified host machines, run:
gdeploy -c <configuration file>
For help and usage options, try:
gdeploy -h