airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [14/37] airavata git commit: Instructions on how to install ansible in virtual environment
Date Tue, 30 May 2017 19:02:34 GMT
Instructions on how to install ansible in virtual environment


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/317bece9
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/317bece9
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/317bece9

Branch: refs/heads/registry-refactoring
Commit: 317bece97ae162e797eda1b3ce3d63535ae6a5a8
Parents: 2265cbe
Author: Marcus Christie <machrist@iu.edu>
Authored: Tue May 9 10:39:32 2017 -0400
Committer: Marcus Christie <machrist@iu.edu>
Committed: Tue May 9 10:39:32 2017 -0400

----------------------------------------------------------------------
 dev-tools/ansible/.gitignore       |  1 +
 dev-tools/ansible/README.md        | 21 +++++++++++++++++++++
 dev-tools/ansible/requirements.txt |  1 +
 3 files changed, 23 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/317bece9/dev-tools/ansible/.gitignore
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/.gitignore b/dev-tools/ansible/.gitignore
index 982f5b2..9fe8344 100644
--- a/dev-tools/ansible/.gitignore
+++ b/dev-tools/ansible/.gitignore
@@ -1,2 +1,3 @@
 *.retry
 vault-password.txt
+ENV/

http://git-wip-us.apache.org/repos/asf/airavata/blob/317bece9/dev-tools/ansible/README.md
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/README.md b/dev-tools/ansible/README.md
index f2b8a6c..f5213a9 100644
--- a/dev-tools/ansible/README.md
+++ b/dev-tools/ansible/README.md
@@ -3,6 +3,27 @@
 Ansible script to deploy Apache Airavata and PGA. 
 There are ansible roles to install Airavata pre-requisites (RabbitMQ, Zookeeper, MariaDB).
 
+## Ansible installation
+
+Note: the following assumes a Bash shell.
+
+1. Download and install the latest version of Python 3.6. See
+   https://www.python.org/downloads/ or use your system's package manager.
+2. Create a virtual environment in this directory
+
+        cd airavata/dev-tools/ansible
+        python3.6 -m venv ENV
+
+3. Source the environment (you'll need to do this each time before using ansible commands)
+
+        source ENV/bin/activate
+
+4. Install ansible and any other dependencies.
+
+        pip install -r requirements.txt
+
+Now you should be ready to run `ansible-playbook` and other ansible commands.
+
 ## Supported OS with versions.
 
 - Centos 7

http://git-wip-us.apache.org/repos/asf/airavata/blob/317bece9/dev-tools/ansible/requirements.txt
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/requirements.txt b/dev-tools/ansible/requirements.txt
new file mode 100644
index 0000000..6f15c81
--- /dev/null
+++ b/dev-tools/ansible/requirements.txt
@@ -0,0 +1 @@
+ansible==2.2.1.0


Mime
View raw message