Skip to content

Commit 8084a5d

Browse files
merge with master
2 parents 443a5bd + 96f172a commit 8084a5d

15 files changed

Lines changed: 33 additions & 21 deletions

File tree

ansible/api-core.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- hosts: charon
66
- hosts: rabbitmq
77
- hosts: redis
8+
- hosts: swarm-manager
89

910
- hosts: api
1011
vars_files:

ansible/beta-hosts/variables

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ ansible_ssh_private_key_file=~/.ssh/oregon.pem
5050
datadog_host_address=10.20.1.59
5151
datadog_tags=env:beta
5252
domain=runnable-beta.com
53+
mongo_port=27000
5354
new_relic_license_key=338516e0826451c297d44dc60aeaf0a0ca4bfead
5455
node_env=production-beta
5556
pg_host=beta-infrastructure-db.cnksgdqarobf.us-west-2.rds.amazonaws.com

ansible/gamma-hosts/variables

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[api_group:vars]
22
api_aws_access_key_id=AKIAIDC4WVMTCGV7KRVQ
33
api_aws_secret_access_key=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
4-
api_github_client_id=baa5c868b6d17d7ae002
5-
api_github_client_secret=ad4f8527ae98d7eea15a32ee5abbead5c9a25abc
6-
api_github_deploy_keys_bucket=runnable.deploykeys.production-gamma
4+
api_github_client_id=b6072dc57062faca7fcb
5+
api_github_client_secret=ba73a9294dc4bfaa7ed02ba187f73918506e4293
6+
api_github_deploy_keys_bucket=runnable.deploykeys.production-beta
77
api_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af
88
api_mixpanel_app_id=c41affa4b08818443365c526cbb51606
9-
api_mongo_auth=api:oW4c7x9Wiv28oiNBy2Bc
9+
api_mongo_auth=api:3f5210b8-8fe3-11e5-8e62-07b6eff19ecb
1010
api_mongo_database=gamma
11-
api_mongo_replset_name=gamma
11+
api_mongo_replset_name=gamma-rs0
1212
api_neo4j_auth=neo4j:oqGlRV1KTpaqbHDkdlJz
1313
api_new_relic_app_name=gamma-api-production
1414
api_rollbar_key=a90d9c262c7c48cfabbd32fd0a1bc61c
15-
api_s3_context_bucket=runnable.context.resources.production-gamma
15+
api_s3_context_bucket=runnable.context.resources.production-beta
1616

1717
[docks:vars]
1818
docker_config=docks
@@ -29,15 +29,15 @@ khronos_mongo_replset_name=gamma
2929
[optimus:vars]
3030
optimus_aws_access_id=AKIAJPA2ZYSVVA5V7XXQ
3131
optimus_aws_secret_id=5V70AUxfIyHeLvlYZe0xaYevDAdgTOWOn5G7nHlt
32-
optimus_github_deploy_keys_bucket=runnable.deploykeys.production-gamma
32+
optimus_github_deploy_keys_bucket=runnable.deploykeys.production-beta
3333

3434
[palantiri:vars]
3535
palantiri_rollbar_key=f675e9090d6f483ca4e742af2c7f2f83
3636

3737
[registry:vars]
38-
registry_s3_access_key=AKIAJZQHOFYKTZP52XCQ
38+
registry_s3_access_key=AKIAJK5EN7W6E62A3C3Q
3939
registry_s3_bucket=runnableimages.beta
40-
registry_s3_secret_key=iOKNwff7HhUnTmHxt1HrJj1lUkrccZTqWvrKi54C
40+
registry_s3_secret_key=ZFLePZdrHUNhTzuV4Ir/NgwPWOnU41Ur9DbH6UAp
4141
registry_s3_region=us-east-1
4242

4343
[shiva:vars]
@@ -60,6 +60,7 @@ ansible_ssh_private_key_file=~/.ssh/gamma.pem
6060
datadog_host_address=10.4.6.251
6161
datadog_tags=env:gamma
6262
domain=runnable-gamma.com
63+
mongo_port=27017
6364
new_relic_license_key=338516e0826451c297d44dc60aeaf0a0ca4bfead
6465
node_env=production-gamma
6566
pg_host=gamma-infrastructure-db.cnksgdqarobf.us-west-2.rds.amazonaws.com

ansible/group_vars/all.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ pg_database: astral
4545
# charon
4646
charon_port: 53
4747

48+
# consul
49+
consul_host_address: "{{ hostvars[groups['consul'][0]]['ansible_default_ipv4']['address'] }}"
50+
consul_api_port: 8500
51+
4852
# datadog
4953
datadog_api_key: 6488896fe0c811965ef233b96809d70d
5054
datadog_host_address: "{{ ansible_default_ipv4.address }}"
@@ -73,7 +77,7 @@ mavis_port: 3000
7377
metis_port: 3000
7478

7579
# mongo
76-
mongo_hosts: "{% for host in groups['mongodb'] %}{{ hostvars[host]['ansible_default_ipv4']['address'] }}:27000{% if not loop.last %},{% endif %}{% endfor %}"
80+
mongo_hosts: "{% for host in groups['mongodb'] %}{{ hostvars[host]['ansible_default_ipv4']['address'] }}:{{ mongo_port }}{% if not loop.last %},{% endif %}{% endfor %}"
7781

7882
# navi
7983
navi_host_address: "{{ hostvars[groups['navi'][0]]['ansible_default_ipv4']['address'] }}"
@@ -100,6 +104,7 @@ shiva_port: 3000
100104

101105
# swarm
102106
swarm_master_port: 2375
107+
swarm_host_address: "{{ hostvars[groups['swarm-manager'][0]]['ansible_default_ipv4']['address'] }}"
103108

104109
# navi/link
105110
navi_mongo_database: navi

ansible/group_vars/alpha-api.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ container_envs: >
4949
-e ROLLBAR_KEY={{ api_rollbar_key }}
5050
-e S3_CONTEXT_RESOURCE_BUCKET={{ api_s3_context_bucket }}
5151
-e USER_CONTENT_DOMAIN={{ user_content_domain }}
52+
-e SWARM_HOST=http://{{ swarm_host_address }}:{{ swarm_master_port }}
5253
5354
container_run_opts: >
5455
-h {{ name }}

ansible/group_vars/alpha-consul.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ container_run_opts: >
2121
-p {{ ansible_default_ipv4.address }}:8302:8302
2222
-p {{ ansible_default_ipv4.address }}:8302:8302/udp
2323
-p {{ ansible_default_ipv4.address }}:8400:8400
24-
-p {{ ansible_default_ipv4.address }}:8500:8500
24+
-p {{ ansible_default_ipv4.address }}:{{ consul_api_port }}:8500
2525
--restart=always
2626
2727
container_run_args: >

ansible/group_vars/alpha-swarm-deamon.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "swarm-deamon"
22

33
# container_kill_start settings
44
container_image: swarm
5-
container_tag: 0.4.0
5+
container_tag: 1.0.0
66

77
# container_kill_start vars
88
log_driver: json-file
@@ -13,4 +13,4 @@ container_run_opts: >
1313
container_run_args: >
1414
join
1515
--addr={{ ansible_default_ipv4.address }}:{{ docker_port }}
16-
token://{{ swarm_token }}
16+
consul://{{ consul_host_address }}:{{ consul_api_port }}/swarm

ansible/group_vars/alpha-swarm-manager.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "swarm-manager"
22

33
# container_kill_start settings
44
container_image: swarm
5-
container_tag: 0.4.0
5+
container_tag: 1.0.0
66

77
# container_kill_start vars
88
log_driver: json-file
@@ -18,4 +18,4 @@ container_run_args: >
1818
--tlscacert={{ docker_ca_path }}
1919
--tlscert={{ docker_cert_path }}
2020
--tlskey={{ docker_key_path }}
21-
token://{{ swarm_token }}
21+
consul://{{ consul_host_address }}:{{ consul_api_port }}/swarm

ansible/group_vars/alpha-workers.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ container_envs: >
4545
-e ROLLBAR_KEY={{ api_rollbar_key }}
4646
-e S3_CONTEXT_RESOURCE_BUCKET={{ api_s3_context_bucket }}
4747
-e USER_CONTENT_DOMAIN={{ user_content_domain }}
48+
-e SWARM_HOST=http://{{ swarm_host_address }}:{{ swarm_master_port }}
4849
4950
container_run_opts: >
5051
-h {{ name }}

ansible/prod-hosts/variables

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ ansible_ssh_private_key_file=~/.ssh/Test-runnable.pem
5050
datadog_host_address=10.0.1.239
5151
datadog_tags=env:alpha
5252
domain=runnable.io
53+
mongo_port=27000
5354
new_relic_license_key=338516e0826451c297d44dc60aeaf0a0ca4bfead
5455
node_env=production
5556
pg_host=alpha-production-db.czw5moz6rmpp.us-west-1.rds.amazonaws.com:30573

0 commit comments

Comments
 (0)