Skip to content

Commit e59c77a

Browse files
committed
Dont make service publicy available. Remove port. Add address.
1 parent ce3fedf commit e59c77a

8 files changed

Lines changed: 5 additions & 11 deletions

File tree

ansible/big-poppa-http.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
- hosts: redis
32
- hosts: rabbitmq
43
- hosts: consul
54

ansible/big-poppa-worker.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
- hosts: redis
32
- hosts: rabbitmq
43
- hosts: consul
54

ansible/delta-hosts/variables

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ api_intercom_app_id=wqzm3rju
1717
api_intercom_api_key=46e75ada5d21f248787689b35fe80e11efe9303a
1818

1919
[big-poppa:vars]
20-
big_poppa_port=443
2120
big_poppa_pg_pass=
2221
big_poppa_pg_host=
2322
big_poppa_github_token=e11a1264130fb62ce045bf03118bf123f980c205

ansible/epsilon-hosts/variables

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ api_workers_rollbar_key=3edfe8fe4fd640ae9fdbbe08fcb9f121
1414
api_s3_context_bucket=runnable.context.resources.production-beta
1515

1616
[big-poppa:vars]
17-
big_poppa_port=443
1817
big_poppa_pg_pass=
1918
big_poppa_pg_host=
2019
big_poppa_github_token=e11a1264130fb62ce045bf03118bf123f980c205

ansible/gamma-hosts/variables

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ api_workers_rollbar_key=3edfe8fe4fd640ae9fdbbe08fcb9f121
1414
api_s3_context_bucket=runnable.context.resources.production-beta
1515

1616
[big-poppa:vars]
17-
big_poppa_port=443
1817
big_poppa_pg_pass=JFmZDuVYPt9vUxk4DBjj
1918
big_poppa_pg_host=gamma-big-poppa.cnksgdqarobf.us-west-2.rds.amazonaws.com:32659
2019
big_poppa_github_token=e11a1264130fb62ce045bf03118bf123f980c205

ansible/group_vars/all.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ pg_database: astral
5858
# big-poppa
5959
big_poppa_pg_database: big_poppa
6060
big_poppa_pg_user: big_poppa
61-
big_poppa_hostname: big-poppa.{{ domain }}
61+
big_poppa_port: 7788
62+
big_poppa_host_address: "{{ hostvars[groups['big-poppa'][0]]['ansible_default_ipv4']['address'] }}"
6263

6364
# charon
6465
charon_port: 53

ansible/group_vars/alpha-api-base.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ sendgrid_key: SG.IUCH4sM9RPC1z_-eM-4nKQ.OrXw3BxihUkCBAwYq1pys0QE3SDbP-nOGdlGwlVK
1313
api_base_container_envs: >-
1414
-e AWS_ACCESS_KEY_ID={{ api_aws_access_key_id }}
1515
-e AWS_SECRET_ACCESS_KEY={{ api_aws_secret_access_key }}
16+
-e BIG_POPPA_URL=://{{ big_poppa_address }}:{{ big_poppa_port }}
1617
-e COOKIE_DOMAIN={{ domain }}
1718
-e DATADOG_HOST={{ datadog_host_address }}
1819
-e DATADOG_PORT={{ datadog_port }}

ansible/group_vars/alpha-big-poppa-http.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@ repo: "git@github.com:CodeNow/big-poppa.git"
77
node_version: 4.4.7
88
npm_version: 2
99

10-
redis_key: "frontend:{{ big_poppa_hostname }}"
11-
is_redis_update_required: 'yes'
12-
1310
# for container settings
1411
container_envs: >
1512
-e DATADOG_HOST={{ datadog_host_address }}
1613
-e DATADOG_PORT={{ datadog_port }}
1714
-e GITHUB_TOKEN={{ big_poppa_github_token }}
18-
-e HTTPS_PORT={{ hosted_ports[0] }}
15+
-e PORT={{ hosted_ports[0] }}
1916
-e INTERCOM_API_KEY={{ big_poppa_intercom_key | default('undefined') }}
2017
-e INTERCOM_APP_ID={{ big_poppa_intercom_id | default('undefined') }}
2118
-e NODE_ENV={{ node_env }}
@@ -29,7 +26,7 @@ container_envs: >
2926
container_run_opts: >
3027
-h {{ name }}
3128
-d
32-
-P
29+
-p {{ hosted_ports[0] }}:{{ hosted_ports[0] }}
3330
{{container_envs}}
3431
3532
npm_start_command: run start-http

0 commit comments

Comments
 (0)