Skip to content

Commit 8fffd3c

Browse files
committed
Merge branch 'master' of github.com:CodeNow/devops-scripts into setup-playbook-revision
* 'master' of github.com:CodeNow/devops-scripts: Change region name Added marketing deploy keys Updated deploy bucket for marketing. Add bucket region for web remove epsilon (#605) change version (#604) Tags Remove '-' PR comments Added postgres connect strings Fix osx removal of deamon (#592) Container Kill Start Add >65000 port for deployment Change node version Added port options Added user content domain var PR comments Changed names to agreeable-egret Added egret and env vars
2 parents 7f060ea + e9f6737 commit 8fffd3c

File tree

15 files changed

+92
-243
lines changed

15 files changed

+92
-243
lines changed

ansible/agreeable-egret.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
- hosts: redis
3+
- hosts: agreeable-egret
4+
vars_files:
5+
- group_vars/alpha-agreeable-egret.yml
6+
roles:
7+
- role: notify
8+
tags: [ notify ]
9+
- role: builder
10+
tags: [ build ]
11+
- role: container_kill_start

ansible/delta-hosts/hosts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ delta-app-services
5959

6060
[dock]
6161

62+
[agreeable-egret]
63+
delta-app-services
64+
6265
[eru]
6366
delta-app-services
6467

@@ -92,6 +95,9 @@ delta-rabbit
9295
[web]
9396
delta-app-services
9497

98+
[marketing]
99+
delta-app-services
100+
95101
[metabase]
96102
delta-metabase
97103

@@ -138,6 +144,7 @@ delta-app-services
138144
delta-prometheus
139145

140146
[delta:children]
147+
agreeable-egret
141148
api
142149
arithmancy
143150
bastion

ansible/delta-hosts/variables

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
[agreeable-egret:vars]
2+
agreeable_egret_port=65520
3+
egret_pg_host=delta-big-poppa.cnksgdqarobf.us-west-2.rds.amazonaws.com
4+
egret_pg_port=5432
5+
egret_pg_user=egret
6+
egret_pg_pass=wwHQ5B4RfY9iKS3m
7+
egret_pg_database=egret
8+
19
[api_group:vars]
210
api_aws_access_key_id=AKIAJWSSSJYUXKNW2ZDA
311
api_aws_secret_access_key=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
@@ -140,6 +148,11 @@ vault_aws_access_key_id=AKIAJ7R4UIM45KH2WGWQ
140148
vault_aws_secret_key=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
141149
vault_aws_region=us-east-1
142150

151+
[marketing:vars]
152+
marketing_bucket=runnable.com
153+
marketing_aws_access_key=AKIAIPPPY2JIOHX7QVCA
154+
marketing_aws_secret_key=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
155+
143156
[delta:vars]
144157
ansible_ssh_private_key_file=~/.ssh/delta.pem
145158
api_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af
@@ -196,3 +209,4 @@ vpc_id=vpc-864c6be3
196209
[web:vars]
197210
web_intercom_id=wqzm3rju
198211
web_sift_public_key=27e9da5c97
212+
web_aws_bucket_region=us-west-2

ansible/epsilon-hosts/docks.js

Lines changed: 0 additions & 75 deletions
This file was deleted.

ansible/epsilon-hosts/hosts

Lines changed: 0 additions & 160 deletions
This file was deleted.

ansible/gamma-hosts/hosts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ gamma-consul-c
4545
[worker]
4646
gamma-api-worker
4747

48+
[agreeable-egret]
49+
gamma-app-services
50+
4851
[eru]
4952
gamma-app-services
5053

@@ -81,6 +84,9 @@ gamma-rabbit
8184
[web]
8285
gamma-app-services
8386

87+
[marketing]
88+
gamma-app-services
89+
8490
[redis]
8591
gamma-redis
8692

@@ -128,6 +134,7 @@ gamma-app-services
128134
gamma-dock-services
129135

130136
[gamma:children]
137+
agreeable-egret
131138
api
132139
arithmancy
133140
bastion

ansible/gamma-hosts/variables

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
[agreeable-egret:vars]
2+
agreeable_egret_port=65520
3+
egret_pg_host=gamma-big-poppa.cnksgdqarobf.us-west-2.rds.amazonaws.com:32659
4+
egret_pg_port=32659
5+
egret_pg_user=egret
6+
egret_pg_pass=b3UKjxbGblKZtG6c
7+
egret_pg_database=egret
8+
19
[api_group:vars]
210
api_aws_access_key_id=AKIAIDC4WVMTCGV7KRVQ
311
api_aws_secret_access_key=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
@@ -122,6 +130,11 @@ vault_aws_access_key_id=AKIAJ7R4UIM45KH2WGWQ
122130
vault_aws_secret_key=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
123131
vault_aws_region=us-east-1
124132

133+
[marketing:vars]
134+
marketing_bucket=runnable-gamma.com
135+
marketing_aws_access_key=AKIAICIWKIZEQCMDXLEA
136+
marketing_aws_secret_key=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
137+
125138
[gamma:vars]
126139
ansible_ssh_private_key_file=~/.ssh/gamma.pem
127140
api_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af

ansible/group_vars/all.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ core_file_dir: /docker/app-cores
4444
## shared application configs
4545
##
4646

47+
# agreeable-egret
48+
agreeable_egret_hostname: egret.{{ domain }}
49+
4750
#angular
4851
angular_url: https://app.{{ domain }}
4952
mixpanel_proxy_url: https://mixpanel.{{ domain }}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "agreeable-egret"
2+
3+
container_image: "registry.runnable.com/runnable/{{ name }}"
4+
container_tag: "{{ git_branch }}"
5+
hosted_ports: ["{{ agreeable_egret_port }}"]
6+
repo: "[email protected]:CodeNow/{{ name }}.git"
7+
node_version: "4.3.1"
8+
npm_version: "3.7.5"
9+
10+
# Exposes egret
11+
redis_key: "frontend:{{ agreeable_egret_hostname }}"
12+
is_redis_update_required: 'yes'
13+
14+
# container settings
15+
container_envs: >
16+
-e HELLO_RUNNABLE_GITHUB_TOKEN={{ api_hello_runnable_github_token }}
17+
-e NODE_ENV={{ node_env }}
18+
-e RUNNABLE_API_URL={{ api_url }}
19+
-e PORT={{ hosted_ports[0] }}
20+
-e RUNNABLE_USER_CONTENT_DOMAIN={{ user_content_domain }}
21+
-e POSTGRES_CONNECT_STRING=postgres://{{ egret_pg_user }}:{{ egret_pg_pass }}@{{ egret_pg_host }}/{{ egret_pg_database }}
22+
23+
container_run_opts: >
24+
-h {{ name }}
25+
-d
26+
-p {{ hosted_ports[0] }}:{{ hosted_ports[0] }}
27+
{{ container_envs }}

0 commit comments

Comments
 (0)