Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Latest commit

 

History

History
108 lines (68 loc) · 2.81 KB

venv-install.mkd

File metadata and controls

108 lines (68 loc) · 2.81 KB

If you haven't installed pre-requisistes yet. Please return to Pre-requisites (all methods).

Table of contents


Virtualenv installation [▲](#top-page "back to top") =======================

Debian GNU/Linux Wheezy

$ sudo apt-get install python-virtualenv python-pip

CentOS Linux 6

$ sudo yum install python-virtualenv python-pip


Virtualenv creation [▲](#top-page "back to top") ===================

Run following command from the directory where you cloned obm-deploy repository.

$ virtualenv -p /usr/bin/python2 --no-site-packages env


Virtualenv activation [▲](#top-page "back to top") =====================

Run the following command from the directory where you cloned obm-deploy repository.

$ . env/bin/activate


Install ansible dependencies [▲](#top-page "back to top") ============================
$ pip install paramiko PyYAML jinja2 pyasn1 pycrypto python-keyczar==0.71b


Clone ansible repository [▲](#top-page "back to top") ========================
$ git clone https://github.com/ansible/ansible -b release1.9.3


Activate ansible environment [▲](#top-page "back to top") ============================
$ source ansible/hacking/env-setup


Exit from your virtualenv [▲](#top-page "back to top") =========================
$ deactivate


Each time you want to work with OBM-Deploy [▲](#top-page "back to top") ==========================================

Run following commands from the directory where you cloned obm-deploy repository.

$ source env/bin/activate
$ source ansible/hacking/env-setup