Skip to content

Commit 2ab746f

Browse files
author
anandkumarpatel
committed
Merge pull request #247 from CodeNow/prune-ssh-config
More like a dry plum actually.
2 parents 2502ec9 + 595dcda commit 2ab746f

21 files changed

Lines changed: 193 additions & 98 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ erl_crash.dump
77
npm-debug.log
88
ca.srl
99
.DS_Store
10+
ansible/roles/hipache/templates/runnable*

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ If, for some reason, the new deploy is not operating as expected you can quickly
7373

7474
It is the custom at Runnable to play a song to the entire team when deploying. For each of the repositories here are the respective songs:
7575

76+
*NEW JUAREZ* [stack: The Cleveland Orchestra (George Szell conducting) Ludwig von Beethoven Symphony No. 9 "Chorale (Ode To Joy)" Opus 125 IV. Presto; Allegro molto assai (Alla marcia); Andante maestroso; Allegro energico, sempre ben marcato.] (https://www.youtube.com/watch?v=4g5770gaais)
77+
7678
[api: Push it - Rick Ross](https://www.youtube.com/watch?v=qk2jeE1LOn8)
7779

7880
[runnable-angular: Push it to the limit - Scarface](https://www.youtube.com/watch?v=9D-QD_HIfjA)

ansible/delta-hosts/docks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var params = {
1414
// Only search for docks in the cluster security group
1515
{
1616
Name: 'instance.group-id',
17-
Values: ['sg-577a0d33']
17+
Values: ['sg-6cd7fb08']
1818
},
1919
// Only fetch instances that are tagged as docks
2020
{

ansible/delta-hosts/hosts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ delta-bastion
33

44
[hipache]
55
delta-hipache httpsCheckForBackend80=false prependIncomingPort=true subDomainDepth=4
6-
delta-userland-hipache domain=runnableapp.com httpsCheckForBackend80=true prependIncomingPort=true subDomainDepth=3
6+
delta-userland domain=runnableapp.com httpsCheckForBackend80=true prependIncomingPort=true subDomainDepth=3
77

88
[mongodb]
99
delta-mongo-a
@@ -31,6 +31,8 @@ delta-services
3131
[worker]
3232
delta-api
3333

34+
[docks]
35+
3436
[eru]
3537
delta-services
3638

@@ -79,10 +81,14 @@ delta-services
7981
[registry]
8082
delta-registry
8183

84+
[sauron]
85+
delta-services
86+
8287
[swarm-manager]
8388
delta-services
8489

85-
[docks]
90+
[metis]
91+
delta-services
8692

8793
[delta:children]
8894
bastion
@@ -102,7 +108,9 @@ mavis
102108
optimus
103109
rabbitmq
104110
eru
111+
sauron
105112
shiva
113+
metis
106114
swarm-manager
107115

108116
[local]

ansible/delta-hosts/variables

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[api_group:vars]
2-
api_aws_access_key_id=AKIAIDC4WVMTCGV7KRVQ
3-
api_aws_secret_access_key=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
4-
api_github_client_id=b6072dc57062faca7fcb
5-
api_github_client_secret=ba73a9294dc4bfaa7ed02ba187f73918506e4293
2+
api_aws_access_key_id=AKIAJWSSSJYUXKNW2ZDA
3+
api_aws_secret_access_key=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
4+
api_github_client_id=d42d6634d4070c9d9bf9
5+
api_github_client_secret=d6cfde38fef5723e25e52629e3d25825c8a704c9
66
api_github_deploy_keys_bucket=runnable.deploykeys.production
7-
api_mixpanel_app_id=c41affa4b08818443365c526cbb51606
7+
api_mixpanel_app_id=57260a5b6fc972e9c69184882efd009e
88
api_mongo_auth=api:72192e5a-a5e1-11e5-add9-0270db32f7ad
99
api_mongo_database=delta
1010
api_mongo_replset_name=delta-rs0
@@ -17,59 +17,58 @@ api_s3_context_bucket=runnable.context.resources.production
1717
docker_config=docks
1818

1919
[eru:vars]
20-
eru_github_id=8abb08f83f6d1c52bd1a
21-
eru_github_secret=74a23ee56486d57b14f292283cb04625f600917c
20+
eru_github_id=46a23f5f99f0aa9460f8
21+
eru_github_secret=a0336d72e3d540fb9fbbed2c123a81e1cb329dab
2222

2323
[khronos:vars]
2424
khronos_mongo_auth=api:oW4c7x9Wiv28oiNBy2Bc
2525
khronos_mongo_database=delta
2626
khronos_mongo_replset_name=delta
2727

2828
[optimus:vars]
29-
optimus_aws_access_id=AKIAJPA2ZYSVVA5V7XXQ
30-
optimus_aws_secret_id=5V70AUxfIyHeLvlYZe0xaYevDAdgTOWOn5G7nHlt
29+
optimus_aws_access_id=AKIAJWSSSJYUXKNW2ZDA
30+
optimus_aws_secret_id=tyvGiCbj5jWCiQnMLvfrfD64dFo8i6prkdcga86y
3131
optimus_github_deploy_keys_bucket=runnable.deploykeys.production
3232

3333
[palantiri:vars]
3434
palantiri_rollbar_key=f675e9090d6f483ca4e742af2c7f2f83
3535

3636
[registry:vars]
37-
registry_s3_access_key=AKIAJK5EN7W6E62A3C3Q
37+
registry_s3_access_key=AKIAJKCSFJCHFDITLBUQ
3838
registry_s3_bucket=runnableimages.alpha
39-
registry_s3_secret_key=ZFLePZdrHUNhTzuV4Ir/NgwPWOnU41Ur9DbH6UAp
40-
registry_s3_region=us-east-1
39+
registry_s3_secret_key=LXxpb4F7Kxum1HvYkG0P20Yb/9Qpr+e5Gtt/0bIY
40+
registry_s3_region=us-west-2
4141

4242
[shiva:vars]
4343
aws_access_key_id=AKIAJ3RCYU6FCULAJP2Q
4444
aws_secret_access_key=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
4545
shiva_rollbar_key=0526a90faec845d796e1ef5361a00526
4646

4747
[vault:vars]
48-
vault_auth_token=e22c3ebc-11cf-653b-7df0-79d78a499458
49-
vault_token_01=71d7b4754686013c8b9cfb22bafae79c661849dcd67c483c89efba12c0466aa201
50-
vault_token_02=794d6f7a3459c332a1fd2bbcc9230a7f84f1639806039ee8be547828cd7ab03a02
51-
vault_token_03=2e67faeffe4343c038d0f3210bdb83f3d3a5bc468975cf13e977ce9b5922aefe03
48+
vault_auth_token=578c9767-5af8-8490-0954-5d330f27b088
49+
vault_token_01=0d324dc7d4cbd94790fd08809d06fb1e28e21e185910081c7646e3e49924f6ed01
50+
vault_token_02=42dc8a69df174e77eb47a63b6ef4709bec57101cb1bff11a71c91b73b8bc046102
51+
vault_token_03=47f3cb74f5374fa3c51c90fd25e3d4cc851034de97584995fce5fc5382342f1f03
5252
vault_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af
5353
vault_aws_access_key_id=AKIAJ7R4UIM45KH2WGWQ
5454
vault_aws_secret_key=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
5555
vault_aws_region=us-east-1
5656

5757
[delta:vars]
5858
ansible_ssh_private_key_file=~/.ssh/delta.pem
59+
api_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af
5960
datadog_host_address=10.8.5.63
6061
datadog_tags=env:delta
61-
domain=runnable-delta.com
62+
domain=runnable.io
6263
mongo_port=27017
6364
new_relic_license_key=338516e0826451c297d44dc60aeaf0a0ca4bfead
6465
node_env=production-delta
6566
pg_host=delta-infrastructure-db.cnksgdqarobf.us-west-2.rds.amazonaws.com
66-
pg_pass=e9G7zYRCxYmxG9HQ8J9x2BDB
67+
pg_pass=59a5524e-a772-11e5-bedc-1bdc0db458b3
6768
rabbit_password=wKK7g7NWKpQXEeSzyWB7mIpxZIL8H2mDSf3Q6czR3Vk
6869
rabbit_username=o2mdLh9N9Ke2GzhoK8xsruYPhIQFN7iEL44dQJoq7OM
6970
registry_host=10.8.4.126
70-
swarm_token=d363b783f03a845a2c82b081bfe8443e
7171
user_content_domain=runnableapp.com
72-
api_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af
7372

7473
[ec2:vars]
7574
aws_custid=437258487404

ansible/group_vars/all.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,24 @@ docker_cert_path: /etc/ssl/docker/cert.pem
6565
docker_key_path: /etc/ssl/docker/key.pem
6666
docker_port: 4242
6767

68+
# ec2
69+
aws_access_key: "AKIAIB3IJCCJZQWQMVSQ"
70+
aws_secret_key: "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"
71+
6872
# eru
6973
eru_port: 57831
7074
eru_hostname: admin.{{ domain }}
7175

76+
# filibuster
77+
filibuster_port: 3112
78+
7279
# fluffy
7380
fluffy_port: 80
7481
fluffy_hostname: "fluffy.{{ domain }}"
7582

83+
# krain
84+
krain_port: 3100
85+
7686
# mavis
7787
mavis_hostname: mavis.{{ domain }}
7888
mavis_port: 3000
@@ -115,11 +125,3 @@ swarm_container_name: swarm
115125
navi_mongo_database: navi
116126
navi_mongo_host_address: "{{ hostvars[groups['mongo-navi'][0]]['ansible_default_ipv4']['address'] }}"
117127
navi_mongo_port: 27017
118-
119-
# consul
120-
consul_hostname: "{{ hostvars[groups['consul'][0]]['ansible_default_ipv4']['address'] }}"
121-
consul_port: 8500
122-
123-
# ec2
124-
aws_access_key: "AKIAIB3IJCCJZQWQMVSQ"
125-
aws_secret_key: "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"

ansible/group_vars/alpha-api.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ container_envs: >
2424
-e DATADOG_HOST={{ datadog_host_address }}
2525
-e DATADOG_PORT={{ datadog_port }}
2626
-e DOMAIN={{ domain }}
27+
-e FILIBUSTER_PORT={{ filibuster_port }}
2728
-e GITHUB_CALLBACK_URL=https://{{ api_hostname }}/auth/github/callback
2829
-e GITHUB_CLIENT_ID={{ api_github_client_id }}
2930
-e GITHUB_CLIENT_SECRET={{ api_github_client_secret }}
3031
-e GITHUB_DEPLOY_KEYS_BUCKET={{ api_github_deploy_keys_bucket }}
3132
-e GITHUB_HOOK_URL=https://{{ api_hostname }}/actions/github
3233
-e HELLO_RUNNABLE_GITHUB_TOKEN={{ api_hello_runnable_github_token }}
34+
-e KRAIN_PORT={{ krain_port }}
3335
-e MAVIS_HOST=http://{{ mavis_hostname }}:80
3436
-e MIXPANEL_APP_ID={{ api_mixpanel_app_id }}
3537
-e MONGO=mongodb://{{ api_mongo_auth }}@{{ mongo_hosts }}/{{ api_mongo_database }}
@@ -52,8 +54,8 @@ container_envs: >
5254
-e ROLLBAR_KEY={{ api_rollbar_key }}
5355
-e S3_CONTEXT_RESOURCE_BUCKET={{ api_s3_context_bucket }}
5456
-e SENDGRID_KEY={{ sendgrid_key }}
55-
-e USER_CONTENT_DOMAIN={{ user_content_domain }}
5657
-e SWARM_HOST=http://{{ swarm_host_address }}:{{ swarm_master_port }}
58+
-e USER_CONTENT_DOMAIN={{ user_content_domain }}
5759
5860
container_run_opts: >
5961
-h {{ name }}

ansible/group_vars/alpha-consul.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ container_run_args: >
3131
-config-dir /etc/consul.d
3232
-client 0.0.0.0
3333
-recursor 8.8.8.8
34-
{% if consul_hostname == ansible_default_ipv4.address %}-bootstrap-expect {{ groups['consul'] | length }}{% endif %}
34+
{% if consul_host_address == ansible_default_ipv4.address %}-bootstrap-expect {{ groups['consul'] | length }}{% endif %}
3535
-data-dir /data
36-
{% if consul_hostname == ansible_default_ipv4.address %}-ui-dir /ui{% endif %}
37-
{% if consul_hostname != ansible_default_ipv4.address %}-retry-join {{ consul_hostname }}{% endif %}
36+
{% if consul_host_address == ansible_default_ipv4.address %}-ui-dir /ui{% endif %}
37+
{% if consul_host_address != ansible_default_ipv4.address %}-retry-join {{ consul_host_address }}{% endif %}
3838
> /var/log/consul.log 2>&1
3939
4040
# some seed values

ansible/group_vars/alpha-hipache.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ container_image: registry.runnable.com/runnable/hipache
55
container_tag: latest
66
hosted_ports: [ 80, 443 ]
77

8+
log_driver: json-file
9+
810
container_run_opts: >
911
-d
1012
-p 80:80

ansible/group_vars/alpha-registry.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ container_image: "registry"
55
container_tag: "2.1.1"
66
hosted_ports: ["80"]
77

8+
log_driver: json-file
9+
810
container_envs: >
911
-e REGISTRY_STORAGE_S3_ACCESSKEY={{ registry_s3_access_key }}
1012
-e REGISTRY_STORAGE_S3_SECRETKEY={{ registry_s3_secret_key }}

0 commit comments

Comments
 (0)