Skip to content

Commit e11042f

Browse files
author
Anandkumar Patel
committed
update sg
1 parent 3e3bdfa commit e11042f

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

ansible/group_vars/alpha-api-base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ api_base_container_envs: >-
3232
-e MONGO_KEY=/opt/ssl/mongodb-client/key.pem
3333
-e MONGO_REPLSET_NAME={{ api_mongo_replset_name }}
3434
-e MONGO=mongodb://{{ api_mongo_auth }}@{{ mongo_hosts }}/{{ api_mongo_database }}
35-
-e NAVI_HOST=http://{{ navi_host_address }}:{{ navi_port }}
35+
-e NAVI_HOST=http://{{ navi_host_address }}:{{ navi_http_port }}
3636
-e NEO4J={{ api_neo4j_protocol }}{{ api_neo4j_auth }}@{{ neo4j_host_address }}:{{ api_neo4j_port }}
3737
{% if api_new_relic_app_name is defined %} -e NEW_RELIC_APP_NAME={{ api_new_relic_app_name }} {% endif %}
3838
{% if api_new_relic_app_name is defined %} -e NEW_RELIC_LICENSE_KEY={{ new_relic_license_key }} {% endif %}

ansible/group_vars/ec2_sg.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ https_port: 443
1717
ip_all: "0.0.0.0/0"
1818
krain_port: 3100
1919
named_port: 53
20-
navi_port: 3567
20+
navi_http_port: 3567
21+
navi_https_port: 443
2122
neo4j_port: 7473
2223
neo4j_tls_port: 7474
2324
redis_port: 6379

ansible/roles/ec2/sg_configure/tasks/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,12 @@
222222
to_port: "{{ sshd_port }}"
223223
group_id: "{{ sg_bastion }}"
224224
- proto: tcp
225-
from_port: "{{ navi_port }}"
226-
to_port: "{{ navi_port }}"
225+
from_port: "{{ navi_http_port }}"
226+
to_port: "{{ navi_http_port }}"
227+
group_id: "{{ sg_hipache }}"
228+
- proto: tcp
229+
from_port: "{{ navi_https_port }}"
230+
to_port: "{{ navi_https_port }}"
227231
group_id: "{{ sg_hipache }}"
228232

229233
- name: Neo4J SG

0 commit comments

Comments
 (0)