From c57d6c58eef5e554e4cf90e8127a9a84d20dcf63 Mon Sep 17 00:00:00 2001 From: runnabro Date: Mon, 19 Jun 2017 11:11:20 -0700 Subject: [PATCH 1/3] add JMESPath requirement --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 57f7fa65..05cf1bf1 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,9 @@ To do so, execute the following steps: Installation: http://docs.ansible.com/intro_installation.html Upgrading: `sudo pip install ansible==2.2.1.0` or http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-pip +2. Install JMESPath: +`pip install jmespath-terminal` + 2. Get the latest devops-scripts (the recipes that we use to deploy various projects) https://github.com/CodeNow/devops-scripts From 07f32cbb4cd99b24fc5193c5c8999ecda59ff55d Mon Sep 17 00:00:00 2001 From: runnabro Date: Mon, 19 Jun 2017 11:16:32 -0700 Subject: [PATCH 2/3] fix numbering --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 05cf1bf1..12d9a016 100644 --- a/README.md +++ b/README.md @@ -16,19 +16,19 @@ Upgrading: `sudo pip install ansible==2.2.1.0` or http://docs.ansible.com/ansibl 2. Install JMESPath: `pip install jmespath-terminal` -2. Get the latest devops-scripts (the recipes that we use to deploy various projects) +3. Get the latest devops-scripts (the recipes that we use to deploy various projects) https://github.com/CodeNow/devops-scripts -3. Change to the devops scripts repo directory and run the following command: +4. Change to the devops scripts repo directory and run the following command: `ln -s //ssh/config ~/.ssh/config` -4. Obtain the "Ansible Secrets" zip for the environment you want to deploy (or create the new environment following [./environments/README.md](./environments/README.md)) +5. Obtain the "Ansible Secrets" zip for the environment you want to deploy (or create the new environment following [./environments/README.md](./environments/README.md)) -5. Unzip file obtained above into `devops-scripts/environments/${YOUR_ENV}/secrets` +6. Unzip file obtained above into `devops-scripts/environments/${YOUR_ENV}/secrets` -6. Copy the `*.pem` files from `devops-scripts/ansible/secrets` to your `~/.ssh` directory +7. Copy the `*.pem` files from `devops-scripts/ansible/secrets` to your `~/.ssh` directory -7. Install two required tools onto your machine: +8. Install two required tools onto your machine: ```bash brew update && brew install vault daemon ``` From b1a7a8529c100ae85edebcc7c8359d5fb6868b41 Mon Sep 17 00:00:00 2001 From: runnabro Date: Mon, 19 Jun 2017 11:27:47 -0700 Subject: [PATCH 3/3] add .. and main.yml to commands --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 12d9a016..cc3ff42d 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ of the docker image needed to run the service on our architecture. ##### Command ``` -ansible-playbook -i ./[inventory_dir] [service-playbook] -e @[main-var-file] -e git_branch=[branch-or-tag] -t deploy +ansible-playbook -i ../[inventory_dir] [service-playbook] -e @../environments/[gamma-or-delta]/main.yml -e git_branch=[branch-or-tag] -t deploy ``` ##### Arguments @@ -102,7 +102,7 @@ being tested in the production mirror. ##### Command ``` -ansible-playbook -i ./[inventory_dir] [service-playbook] -e @[main-var-file] -e git_branch=[branch-or-tag] -t deploy -e build_args=--no-cache +ansible-playbook -i ../[inventory_dir] [service-playbook] -e @../environments/[gamma-or-delta]/main.yml] -e git_branch=[branch-or-tag] -t deploy -e build_args=--no-cache ``` ##### Arguments