Skip to content

Commit cb3540e

Browse files
author
Anandkumar Patel
committed
merge with master
2 parents bd90cf9 + 296eb21 commit cb3540e

21 files changed

Lines changed: 138 additions & 192 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,8 @@ It is the custom at Runnable to play a song to the entire team when deploying. F
105105

106106
[Sauron: Sauron theme song from LOTR](https://www.youtube.com/watch?v=V_rk9VBrXMY)
107107

108+
[Detention: Unbreakable Kimmy Schmidt](https://youtu.be/CV9xF8CjhJk?t=21s)
109+
110+
[Link: Zelda Main Theme Song](https://www.youtube.com/watch?v=cGufy1PAeTU)
111+
108112
**IMPORTANT:** Make sure the play the song loud and proud when deploying!

ansible/ansible.cfg

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

ansible/delta-hosts/hosts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ delta-web
2929
delta-services
3030

3131
[worker]
32-
delta-api
32+
delta-api-worker
3333

3434
[docks]
3535

@@ -97,6 +97,7 @@ bastion
9797
hipache
9898
mongodb
9999
api
100+
worker
100101
web
101102
redis
102103
redis-slave

ansible/delta-hosts/variables

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ eru_github_id=46a23f5f99f0aa9460f8
2121
eru_github_secret=a0336d72e3d540fb9fbbed2c123a81e1cb329dab
2222

2323
[khronos:vars]
24-
khronos_mongo_auth=api:oW4c7x9Wiv28oiNBy2Bc
24+
khronos_mongo_auth=api:72192e5a-a5e1-11e5-add9-0270db32f7ad
2525
khronos_mongo_database=delta
2626
khronos_mongo_replset_name=delta
2727

@@ -59,8 +59,9 @@ domain=runnable.io
5959
mongo_port=27017
6060
new_relic_license_key=338516e0826451c297d44dc60aeaf0a0ca4bfead
6161
node_env=production-delta
62-
pg_host=delta-infrastructure-db.cnksgdqarobf.us-west-2.rds.amazonaws.com
62+
pg_host=delta-infradb.cnksgdqarobf.us-west-2.rds.amazonaws.com
6363
pg_pass=59a5524e-a772-11e5-bedc-1bdc0db458b3
64+
pg_user=astral
6465
rabbit_password=wKK7g7NWKpQXEeSzyWB7mIpxZIL8H2mDSf3Q6czR3Vk
6566
rabbit_username=o2mdLh9N9Ke2GzhoK8xsruYPhIQFN7iEL44dQJoq7OM
6667
registry_host=10.8.4.126

ansible/gamma-hosts/hosts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ gamma-hipache httpsCheckForBackend80=false prependIncomingPort=true subDomainDep
66
gamma-userland-hipache domain=runnable.ninja httpsCheckForBackend80=true prependIncomingPort=true subDomainDepth=3
77

88
[mongodb]
9-
gamma-mongo-us-west-2a
10-
gamma-mongo-us-west-2b
11-
gamma-mongo-us-west-2c
9+
gamma-mongo-a
10+
gamma-mongo-b
11+
gamma-mongo-c
1212

1313
[neo4j]
1414
gamma-neo4j
@@ -29,7 +29,7 @@ gamma-web
2929
gamma-services
3030

3131
[worker]
32-
gamma-api
32+
gamma-api-worker
3333

3434
[eru]
3535
gamma-services
@@ -85,6 +85,9 @@ gamma-registry
8585
[swarm-manager]
8686
gamma-services
8787

88+
[metis]
89+
gamma-services
90+
8891
[docks]
8992

9093
[dock]
@@ -104,13 +107,17 @@ navi
104107
neo4j
105108
optimus
106109
rabbitmq
110+
api
111+
worker
112+
web
107113
redis
108114
redis-slave
109115
registry
110116
sauron
111117
shiva
112118
swarm-manager
113119
web
120+
metis
114121

115122
[ec2]
116123
127.0.0.1

ansible/gamma-hosts/variables

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ eru_github_id=8abb08f83f6d1c52bd1a
2121
eru_github_secret=74a23ee56486d57b14f292283cb04625f600917c
2222

2323
[khronos:vars]
24-
khronos_mongo_auth=api:oW4c7x9Wiv28oiNBy2Bc
24+
khronos_mongo_auth=api:3f5210b8-8fe3-11e5-8e62-07b6eff19ecb
2525
khronos_mongo_database=gamma
2626
khronos_mongo_replset_name=gamma
2727

@@ -54,6 +54,8 @@ vault_aws_region=us-east-1
5454
ansible_ssh_private_key_file=~/.ssh/gamma.pem
5555
datadog_host_address=10.4.6.251
5656
datadog_tags=env:gamma
57+
datadog_mongodb_user=datadog
58+
datadog_mongodb_pwd=sqa3WBgkCgZsFZuex0kBNahZ
5759
domain=runnable-gamma.com
5860
mongo_port=27017
5961
new_relic_license_key=338516e0826451c297d44dc60aeaf0a0ca4bfead
@@ -66,6 +68,7 @@ registry_host=10.4.4.82
6668
swarm_token=d363b783f03a845a2c82b081bfe8443e
6769
user_content_domain=runnable.ninja
6870
api_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af
71+
no_dd_monitoring=false
6972
vault_auth_token=e22c3ebc-11cf-653b-7df0-79d78a499458
7073
vault_token_01=71d7b4754686013c8b9cfb22bafae79c661849dcd67c483c89efba12c0466aa201
7174
vault_token_02=794d6f7a3459c332a1fd2bbcc9230a7f84f1639806039ee8be547828cd7ab03a02

ansible/group_vars/alpha-mongo.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ db_path: "/opt/mongodb/db"
77
container_image: mongo
88
container_tag: "latest"
99
container_run_opts: "-d --name mongodb -p 27017:27017 -v {{ db_path }}:/data/db:rw"
10+
11+
# do not monitor docker-daemon for mongo, as there is none
12+
no_dd_monitoring: true

ansible/group_vars/alpha-navi.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@ node_version: "4.1.0"
88
npm_version: "2.8.3"
99

1010
container_envs: >
11-
-e CLUSTER_WORKERS=20
1211
-e DATADOG_HOST={{ datadog_host_address }}
1312
-e DATADOG_PORT={{ datadog_port }}
13+
-e ENABLE_CLUSTERING=1
14+
-e ENABLE_LRU_CACHE=1
1415
-e ERROR_URL=http://{{ detention_host_address }}:{{ detention_port }}
1516
-e HTTP_PORT={{ hosted_ports[0] }}
1617
-e LOG_LEVEL_STDOUT=trace
1718
-e MONGO=mongodb://{{ navi_mongo_host_address }}:{{ navi_mongo_port }}/{{ navi_mongo_database }}
1819
-e NODE_ENV={{ node_env }}
20+
-e RABBITMQ_HOSTNAME={{ rabbit_host_address }}
21+
-e RABBITMQ_PASSWORD={{ rabbit_password }}
22+
-e RABBITMQ_PORT={{ rabbit_port }}
23+
-e RABBITMQ_USERNAME={{ rabbit_username }}
1924
-e REDIS_IPADDRESS={{ redis_host_address }}
2025
2126
container_run_opts: >

ansible/group_vars/alpha-rabbitmq.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ container_tag: "3.5.3-management"
1010
container_run_opts: "-d --name prod-rabbit -v {{ db_path }}:/var/lib/rabbitmq:rw -v {{ config_path }}/rabbitmq.config:/etc/rabbitmq/rabbitmq.config:ro -p 54320:15672 -p 54321:5672"
1111

1212
hosted_ports: [ 5672, 15672 ]
13+
# monitor the docker-daemon
14+
no_dd_monitoring: false

ansible/group_vars/alpha-sauron.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ docker_path: "/bin/docker"
1313
dockerfile_pre_install_commands: [
1414
"curl -L https://get.docker.com/builds/Linux/x86_64/docker-1.6.2 -o {{ docker_path }}",
1515
"chmod a+x {{ docker_path }}",
16-
"curl -L https://github.com/weaveworks/weave/releases/download/v1.3.1/weave -o {{ weave_path }}",
16+
"curl -L https://github.com/weaveworks/weave/releases/download/v1.4.1/weave -o {{ weave_path }}",
1717
"chmod a+x {{ weave_path }}"
1818
]
1919

0 commit comments

Comments
 (0)