Skip to content

Commit 1ae1336

Browse files
author
Christopher M. Neill
committed
Merge branch 'master' into SAN-4042-combo-log-refactor
2 parents 82bce3d + e8ae7bf commit 1ae1336

24 files changed

Lines changed: 277 additions & 86 deletions

File tree

ansible/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
_cache
12
*.pyc

ansible/ansible.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[defaults]
22
# Required so `sudo: yes` does not lose the environment variables, which hold the ssh-agent socket
3-
sudo_flags=-HE
3+
sudo_flags = -HE

ansible/delta-hosts/variables

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,16 @@ drake_http_rollbar_token=52ad749ddb8e47b2a8e15312b6b300fb
2727
drake_worker_rollbar_token=14152b8572034943b714da27ca607698
2828

2929
[eru:vars]
30+
eru_subdomain=eru
3031
eru_github_id=46a23f5f99f0aa9460f8
3132
eru_github_secret=a0336d72e3d540fb9fbbed2c123a81e1cb329dab
33+
eru_aws_access_key_id=AKIAIFCVEISSC5JMPWDA
34+
eru_aws_secret_access_key=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
35+
eru_aws_environment=delta
36+
eru_mongodb_database=delta
37+
eru_mongodb_password=tilde-rawboned-lotus-hideaway-diastole
38+
eru_mongodb_username=eru
39+
eru_mongodb_replset=delta-rs0
3240

3341
[khronos:vars]
3442
intercom_api_key=14771f14efb617900724a16345e57beb55ba9beb

ansible/epsilon-hosts/variables

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,16 @@ drake_http_rollbar_token=52ad749ddb8e47b2a8e15312b6b300fb
2626
drake_worker_rollbar_token=14152b8572034943b714da27ca607698
2727

2828
[eru:vars]
29-
eru_github_id=8abb08f83f6d1c52bd1a
30-
eru_github_secret=74a23ee56486d57b14f292283cb04625f600917c
29+
eru_subdomain=eru
30+
eru_github_id=1834e6be0811db20d219
31+
eru_github_secret=dda712ce9bdb92cd9187b14c0897319e90dd5462
32+
eru_aws_access_key_id=AKIAIFCVEISSC5JMPWDA
33+
eru_aws_secret_access_key=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
34+
eru_aws_environment=epsilon
35+
eru_mongodb_database=epsilon
36+
eru_mongodb_password=success-nan-europium-rerun-sheep
37+
eru_mongodb_username=eru
38+
eru_mongodb_replset=epsilon-rs0
3139

3240
[khronos:vars]
3341
khronos_mongo_auth=api:3f5210b8-8fe3-11e5-8e62-07b6eff19ecb

ansible/eru.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
---
2-
- hosts: redis
32
- hosts: consul
3+
- hosts: mongodb
4+
- hosts: redis
45

56
- hosts: eru
67
vars_files:
7-
- "group_vars/alpha-eru.yml"
8+
- group_vars/alpha-eru.yml
9+
roles:
10+
- { role: notify, tags: [ notify ] }
11+
- { role: builder, tags: [ build ] }
12+
- role: container_start
13+
14+
- hosts: socket-server-proxy
15+
vars_files:
16+
- group_vars/alpha-eru.yml
817
roles:
9-
- { role: notify, tags: "notify" }
10-
- { role: redis_key, tags: ["setup", "redis_key"] }
11-
- { role: builder, tags: "build" }
12-
- { role: container_kill_start }
18+
- role: eru

ansible/gamma-hosts/variables

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,16 @@ drake_http_rollbar_token=52ad749ddb8e47b2a8e15312b6b300fb
2626
drake_worker_rollbar_token=14152b8572034943b714da27ca607698
2727

2828
[eru:vars]
29+
eru_subdomain=eru
2930
eru_github_id=8abb08f83f6d1c52bd1a
3031
eru_github_secret=74a23ee56486d57b14f292283cb04625f600917c
32+
eru_aws_access_key_id=AKIAIFCVEISSC5JMPWDA
33+
eru_aws_secret_access_key=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
34+
eru_aws_environment=gamma
35+
eru_mongodb_database=gamma
36+
eru_mongodb_password=success-nan-europium-rerun-sheep
37+
eru_mongodb_username=eru
38+
eru_mongodb_replset=gamma-rs0
3139

3240
[khronos:vars]
3341
khronos_mongo_auth=api:3f5210b8-8fe3-11e5-8e62-07b6eff19ecb

ansible/group_vars/all.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ aws_access_key: "AKIAIB3IJCCJZQWQMVSQ"
9595
aws_secret_key: "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"
9696

9797
# eru
98-
eru_port: 57831
99-
eru_hostname: admin.{{ domain }}
10098

10199
# filibuster
102100
filibuster_port: 3112

ansible/group_vars/alpha-api-base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repo: git@github.com:CodeNow/api.git
99
sendgrid_key: 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
1010

1111
# shared ENV's between api services
12-
api_base_container_envs: >
12+
api_base_container_envs: >-
1313
-e AWS_ACCESS_KEY_ID={{ api_aws_access_key_id }}
1414
-e AWS_SECRET_ACCESS_KEY={{ api_aws_secret_access_key }}
1515
-e COOKIE_DOMAIN={{ domain }}

ansible/group_vars/alpha-eru.yml

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,40 @@
1+
---
12
name: eru
23

34
container_image: registry.runnable.com/runnable/{{ name }}
45
container_tag: "{{ git_branch }}"
56
repo: git@github.com:CodeNow/{{ name }}.git
6-
hosted_ports: ["{{ eru_port }}"]
7-
node_version: "0.12.0"
8-
npm_version: "2.1.18"
7+
hosted_ports: [ "5501", "5502" ]
8+
node_version: lts
9+
npm_version: 2
10+
has_shrinkwrap: true
911

10-
# for redis
11-
redis_key: frontend:{{ eru_hostname }}
12-
is_redis_update_required: yes
12+
dockerfile_post_install_commands:
13+
- apt-get update && apt-get install -y supervisor
14+
- npm run build
1315

14-
container_envs: >
15-
-e ADMIN_DOMAIN={{ eru_hostname }}
16-
-e ADMIN_GITHUB_ID={{ eru_github_id }}
17-
-e ADMIN_GITHUB_SECRET={{ eru_github_secret }}
18-
-e API_URL={{ api_url }}
19-
-e RUNNABLE_HOST={{ domain }}
20-
-e PORT={{ hosted_ports[0] }}
16+
container_envs: >-
17+
-e AWS_ACCESS_KEY={{ eru_aws_access_key_id }}
18+
-e AWS_ENVIRONMENT={{ eru_aws_environment }}
19+
-e AWS_SECRET_KEY={{ eru_aws_secret_access_key }}
20+
-e DOMAIN={{ eru_subdomain }}.{{ domain }}
21+
-e GITHUB_CLIENT_ID={{ eru_github_id }}
22+
-e GITHUB_CLIENT_SECRET={{ eru_github_secret }}
23+
-e MONGODB_DATABASE={{ eru_mongodb_database }}
24+
-e MONGODB_PASSWORD={{ eru_mongodb_password }}
25+
-e MONGODB_HOSTS={{ mongo_hosts }}
26+
-e MONGODB_REPLSET={{ eru_mongodb_replset }}
27+
-e MONGODB_USERNAME={{ eru_mongodb_username }}
28+
-e NODE_ENV=production
29+
-e REDIS_HOSTNAME={{ redis_host_address }}
30+
-e REDIS_PORT={{ redis_port }}
31+
-e RUNNABLE_DOMAIN={{ domain }}
2132
2233
container_run_opts: >
2334
-h {{ name }}
2435
-d
25-
-p {{ hosted_ports[0] }}:{{ hosted_ports[0] }}
36+
-P
37+
-v /var/log:/var/log:rw
2638
{{ container_envs }}
39+
40+
container_run_args: supervisord --configuration supervisord.conf --nodaemon

ansible/group_vars/alpha-optimus.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
name: "optimus"
1+
name: optimus
22

3-
container_image: "registry.runnable.com/runnable/{{ name }}"
3+
container_image: registry.runnable.com/runnable/{{ name }}
44
container_tag: "{{ git_branch }}"
5-
repo: "git@github.com:CodeNow/{{ name }}.git"
5+
repo: git@github.com:CodeNow/{{ name }}.git
66
hosted_ports: ["{{ optimus_port }}"]
77
node_version: "4.3.2"
88
npm_version: "2.8.3"
99

1010
# for redis
11-
redis_key: "frontend:{{ optimus_hostname }}"
12-
is_redis_update_required: 'yes'
11+
redis_key: frontend:{{ optimus_hostname }}
12+
is_redis_update_required: yes
1313

1414
container_envs: >
1515
-e NODE_ENV={{ node_env }}
@@ -26,4 +26,4 @@ container_run_opts: >
2626
-h {{ name }}
2727
-d
2828
-P
29-
{{container_envs}}
29+
{{ container_envs }}

0 commit comments

Comments
 (0)