Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 84439200CA7 for ; Tue, 30 May 2017 21:02:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 82FC2160BF3; Tue, 30 May 2017 19:02:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AE184160BE6 for ; Tue, 30 May 2017 21:02:23 +0200 (CEST) Received: (qmail 94376 invoked by uid 500); 30 May 2017 19:02:22 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 93630 invoked by uid 99); 30 May 2017 19:02:21 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2017 19:02:21 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id BA632E00C4; Tue, 30 May 2017 19:02:21 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: scnakandala@apache.org To: commits@airavata.apache.org Date: Tue, 30 May 2017 19:02:34 -0000 Message-Id: <08dbe6078e9647c0a4508ca4c54f8edf@git.apache.org> In-Reply-To: <22a8687c861a4bf8b9a000c483845fb3@git.apache.org> References: <22a8687c861a4bf8b9a000c483845fb3@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [14/37] airavata git commit: Instructions on how to install ansible in virtual environment archived-at: Tue, 30 May 2017 19:02:24 -0000 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 Authored: Tue May 9 10:39:32 2017 -0400 Committer: Marcus Christie 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