add infra-role-waku-peers to connect peers

The logic was extracted to a separate role and Python script:

- https://github.com/status-im/infra-role-waku-peers
- https://github.com/status-im/infra-repos/commit/f3084d4e
- https://github.com/status-im/infra-role-nim-waku/commit/b8b64c0e
- https://github.com/status-im/infra-status/issues/4

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-03-10 17:26:44 +01:00
parent 4eac21225c
commit b2142fd80b
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
3 changed files with 18 additions and 9 deletions

View File

@ -17,6 +17,10 @@ nim_waku_rpc_tcp_addr: 0.0.0.0
nim_waku_p2p_max_connections: 150 nim_waku_p2p_max_connections: 150
nim_waku_store_capacity: 10000 nim_waku_store_capacity: 10000
# Peer connecting
nim_waku_connect_consul_service_names: ['{{ nim_waku_cont_name }}', 'nim-waku-bridge']
nim_waku_connect_rpc_port: '{{ nim_waku_rpc_tcp_port }}'
# Open LibP2P Ports # Open LibP2P Ports
open_ports_default_comment: '{{ nim_waku_cont_name }}' open_ports_default_comment: '{{ nim_waku_cont_name }}'
open_ports_default_protocol: 'tcp' open_ports_default_protocol: 'tcp'
@ -26,4 +30,3 @@ open_ports_list:
- { port: '{{ nim_waku_p2p_udp_port }}', protocol: 'udp' } - { port: '{{ nim_waku_p2p_udp_port }}', protocol: 'udp' }
- { port: '{{ nim_waku_metrics_port }}', chain: 'VPN', ipset: 'metrics.hq' } - { port: '{{ nim_waku_metrics_port }}', chain: 'VPN', ipset: 'metrics.hq' }
- { port: '{{ nim_waku_rpc_tcp_port }}', chain: 'VPN', ipset: '{{ env }}.{{ stage }}' } - { port: '{{ nim_waku_rpc_tcp_port }}', chain: 'VPN', ipset: '{{ env }}.{{ stage }}' }

View File

@ -15,6 +15,7 @@
- { role: open-ports, tags: open-ports } - { role: open-ports, tags: open-ports }
- { role: swap-file, tags: swap-file } - { role: swap-file, tags: swap-file }
- { role: nim-waku, tags: nim-waku } - { role: nim-waku, tags: nim-waku }
- { role: waku-peers, tags: waku-peers }
- name: Configure Waku V1-V2 bridge - name: Configure Waku V1-V2 bridge
hosts: bridge hosts: bridge

View File

@ -16,7 +16,7 @@
- name: infra-role-wireguard - name: infra-role-wireguard
src: git@github.com:status-im/infra-role-wireguard.git src: git@github.com:status-im/infra-role-wireguard.git
version: 6cc6472e32b6dc53d7d854ab5a34d554451bec15 version: b711bbabd2dc3d9ce8b1c3a6e5bc785901db9d09
scm: git scm: git
- name: consul-service - name: consul-service
@ -26,5 +26,10 @@
- name: nim-waku - name: nim-waku
src: git@github.com:status-im/infra-role-nim-waku.git src: git@github.com:status-im/infra-role-nim-waku.git
version: cb2b857ba929cda4a5ba9859bd7de27adafdd16b version: b8b64c0e9796c762db2eaabd081c505db590e8a8
scm: git
- name: waku-peers
src: git@github.com:status-im/infra-role-waku-peers.git
version: 8d002863097830316d2f9a2aa64a5f2cf974ed3a
scm: git scm: git