Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,22 @@ 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. Get the latest devops-scripts (the recipes that we use to deploy various projects)
2. Install JMESPath:
`pip install jmespath-terminal`

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 /<local-path-to-devops-scripts>/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
```
Expand Down Expand Up @@ -71,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
Expand Down Expand Up @@ -99,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
Expand Down