Skip to content

Commit e6206b7

Browse files
author
Bryan Kendall
committed
specify port for environments
1 parent cc68cb5 commit e6206b7

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ api_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af
88
api_mixpanel_app_id=c41affa4b08818443365c526cbb51606
99
api_mongo_auth=api:oW4c7x9Wiv28oiNBy2Bc
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
@@ -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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ mavis_port: 3000
7373
metis_port: 3000
7474

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

7878
# navi
7979
navi_host_address: "{{ hostvars[groups['navi'][0]]['ansible_default_ipv4']['address'] }}"

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)