Skip to content

Commit

Permalink
add task for opening ports on firewall
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sokołowski <[email protected]>
  • Loading branch information
jakubgs committed Sep 22, 2022
1 parent 1a049ec commit ebf86bf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ galaxy_info:
versions:
- xenial
dependencies:
- name: open-ports
src: [email protected]:status-im/infra-role-open-ports.git
scm: git
- name: systemd-timer
src: [email protected]:status-im/infra-role-systemd-timer.git
scm: git
Expand Down
9 changes: 9 additions & 0 deletions tasks/firewall.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
- name: Open service ports in iptables
include_role: name=open-ports
vars:
open_ports_default_comment: '{{ validator_client_service_name }}'
open_ports_default_chain: 'VPN'
open_ports_list:
- { port: '{{ validator_client_metrics_port }}', ipset: 'metrics.hq' }
- { port: '{{ validator_client_keymanager_port }}', ipset: '{{ env }}.{{ stage }}' }
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
- include_tasks: service.yml
- import_tasks: validators.yml
when: validator_client_dist_validators_enabled
- include_tasks: firewall.yml
#- include_tasks: consul.yml

0 comments on commit ebf86bf

Please sign in to comment.