Skip to content

Commit 11d96dd

Browse files
committed
Merge remote-tracking branch 'origin/master' into add-big-poppa
2 parents 9af8962 + d7e8cb4 commit 11d96dd

5 files changed

Lines changed: 20 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Scripts for managing our deployments.
99
Before you can deploy you'll need to install the appropriate tools, scripts, and keys on your local machine.
1010
To do so, execute the following steps:
1111

12-
1. Install Ansible (the deploy automation tool we use to deploy projects to production)
12+
1. Install Ansible v2.1.0.0 (the deploy automation tool we use to deploy projects to production)
1313
http://docs.ansible.com/intro_installation.html
1414

1515
2. Get the latest devops-scripts (the recipes that we use to deploy various projects)
@@ -18,7 +18,7 @@ https://github.com/CodeNow/devops-scripts
1818
3. Change to the devops scripts repo directory and run the following command:
1919
`ln -s /<local-path-to-devops-scripts>/ssh/config ~/.ssh/config`
2020

21-
4. Obtain the “Keys of Power” from someone who can already deploy (ask Anand if you don’t know). Depending on what you want to deploy you'll receive either `Test-runnable.pem`, `oregon.pem`, or both.
21+
4. Obtain the “Keys of Power” from someone who can already deploy (ask Anand if you don’t know). Depending on what you want to deploy you'll receive either `Test-runnable.pem`, `oregon.pem`, `delta.pem`, `delta-prime.pem` or some combination of them.
2222

2323
5. Move the “Keys of Power” .pem files to your `~/.ssh` directory
2424

ansible/group_vars/alpha-api-base.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
container_tag: "{{ git_branch }}"
22

3-
node_version: 0.10.38
4-
npm_version: 2.8.3
3+
node_version: 4.2.2
4+
npm_version: 2.14.7
55

66
repo: git@github.com:CodeNow/api.git
77
restart_policy: always
@@ -41,9 +41,6 @@ api_base_container_envs: >-
4141
-e HELLO_RUNNABLE_GITHUB_TOKEN={{ api_hello_runnable_github_token }}
4242
-e KRAIN_PORT={{ krain_port }}
4343
-e MIXPANEL_APP_ID={{ api_mixpanel_app_id }}
44-
-e MONGO_CACERT=/opt/ssl/mongodb-client/ca.pem
45-
-e MONGO_CERT=/opt/ssl/mongodb-client/cert.pem
46-
-e MONGO_KEY=/opt/ssl/mongodb-client/key.pem
4744
-e MONGO_REPLSET_NAME={{ api_mongo_replset_name }}
4845
-e MONGO=mongodb://{{ api_mongo_auth }}@{{ mongo_hosts }}/{{ api_mongo_database }}
4946
-e NAVI_HOST=http://{{ navi_host_address }}:{{ navi_http_port }}

ansible/roles/build_with_dockerfile/tasks/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
---
22
# commands to build an image from a repo that contains a Dockerfile
3+
- name: Ensure Tag Deploy For Prod
4+
tags: deploy
5+
when: not git_branch | match("^v([0-9]+)\.([0-9]+)\.([0-9]+)$") and node_env=="production-delta"
6+
fail: msg="only tag can be deployed on prod not {{ git_branch }}"
7+
38
- name: create build folder
49
become: true
510
file:

ansible/roles/builder/tasks/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
---
22
# commands to build an image
3+
#
4+
- name: Ensure Tag Deploy For Prod
5+
tags: deploy
6+
when: not git_branch | match("^v([0-9]+)\.([0-9]+)\.([0-9]+)$") and node_env=="production-delta"
7+
fail: msg="only tag can be deployed on prod not {{ git_branch }}"
8+
39
- name: create build folder
410
become: true
511
file:

ansible/roles/git_repo/tasks/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
---
2+
- name: Ensure Tag Deploy For Prod
3+
tags: deploy
4+
when: not git_branch | match("^v([0-9]+)\.([0-9]+)\.([0-9]+)$") and node_env=="production-delta"
5+
fail: msg="only tag can be deployed on prod not {{ git_branch }}"
6+
27
- name: Display Git Repo Name
38
debug:
49
msg: "application Installed: {{ app_name }}, branch : {{ git_branch }} "

0 commit comments

Comments
 (0)