Skip to content
Nandaja Varma edited this page Aug 17, 2015 · 10 revisions

###Development environment setup

This section helps in setting up the development environment for anyone who wishes to contribute to the project.

####Clone the gdeploy repo

git clone [email protected]:nandajavarma/gdeploy.git

cd gdeploy

####Install the library module glusterlib:

python setup.py install

OR

echo "export PYTHONPATH=$PYTHONPATH:'/path/to/gdeploy/glusterlib/'" >> ~/.bashrc

####Install dependent libraries:

setuptools does not install the required libraries as of now (we have out reasons ;-) )

If you are using pip, you can do:

pip install -r requirements.txt

else install Ansible using your favorite tool. :-)

####Export the Ansible custom modules in the repo so that ansible can read it:

Set the environment variable ANSIBLE_LIBRARY to point to gdeploy/modules

echo "export ANSIBLE_LIBRARY=$ANSIBLE_LIBRARY:'/path/to/gdeploy/modules/'" >> ~/.bashrc

OR

Copy gdeploy/modules to inside Ansible-modules-extras directory

cp /path/to/gdeploy/modules/* /usr/lib/python-*/ansible/modules/extras/system/.

####Make the playbooks(we call it templates) inside the repo accessible for Ansible.

Set the environment variable GDEPLOY_TEMPLATES to point to gdeploy/ root directory

echo "export GDEPLOY_TEMPLATES'/path/to/gdeploy/'" >> ~/.bashrc

That's it! Try running gdeploy.

If you have made any changes, to apply the changes to the binary gdeploy run the command:

python setup.py develop

Clone this wiki locally