Skip to content

Commit

Permalink
boot-node: add sonda to the host
Browse files Browse the repository at this point in the history
Referenced issue: status-im/infra-hq#135

Signed-off-by: markoburcul <[email protected]>
  • Loading branch information
markoburcul committed Oct 29, 2024
1 parent 359f333 commit 823567b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
17 changes: 13 additions & 4 deletions ansible/group_vars/boot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ nim_waku_p2p_tcp_port: 30303
nim_waku_metrics_port: 8008
nim_waku_disc_v5_port: 9000
nim_waku_rpc_tcp_port: 8545
nim_waku_rest_port: 8645
nim_waku_rest_addr: '0.0.0.0'
nim_waku_websock_port: 443

# Limits
Expand Down Expand Up @@ -68,6 +70,11 @@ nim_waku_consul_success_before_passing: 5
nim_waku_consul_failures_before_warning: 5
nim_waku_consul_failures_before_critical: 20

# Monitoring
nim_waku_sonda_enabled: true
nim_waku_sonda_metrics_port: 8004
nim_waku_node_rest_address: 'http://{{ inventory_hostname }}.wg:{{ nim_waku_rest_port }}'

# LetsEncrypt via Certbot
certbot_docker_enabled: true
certbot_admin_email: '[email protected]'
Expand All @@ -90,10 +97,12 @@ open_ports_list:
nginx:
- { comment: 'Nginx and Certbot', port: '80' }
nim-waku:
- { comment: 'Nim-Waku LibP2P', port: '{{ nim_waku_p2p_tcp_port }}' }
- { comment: 'Nim-Waku Discovery v5', port: '{{ nim_waku_disc_v5_port }}', protocol: 'udp' }
- { comment: 'Nim-Waku Metrics', port: '{{ nim_waku_metrics_port }}', ipset: 'hq.metrics', iifname: 'wg0' }
- { comment: 'Nim-Waku WebSocket', port: '{{ nim_waku_websock_port }}' }
- { comment: 'Nim-Waku LibP2P', port: '{{ nim_waku_p2p_tcp_port }}' }
- { comment: 'Nim-Waku Discovery v5', port: '{{ nim_waku_disc_v5_port }}', protocol: 'udp' }
- { comment: 'Nim-Waku Metrics', port: '{{ nim_waku_metrics_port }}', ipset: 'hq.metrics', iifname: 'wg0' }
- { comment: 'Nim-Waku REST API port', port: '{{ nim_waku_rest_port }}', ipset: '{{ env }}.{{ stage }}', iifname: 'wg0' }
- { comment: 'Nim-Waku Sonda Metrics', port: '{{ nim_waku_sonda_metrics_port }}', ipset: 'hq.metrics', iifname: 'wg0' }
- { comment: 'Nim-Waku WebSocket', port: '{{ nim_waku_websock_port }}' }

# Public Config file access
nginx_sites:
Expand Down
11 changes: 6 additions & 5 deletions ansible/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
- boot
- store
roles:
- { role: infra-role-open-ports, tags: open-ports }
- { role: infra-role-swap-file, tags: swap-file }
- { role: infra-role-certbot, tags: certbot }
- { role: infra-role-nim-waku, tags: nim-waku }
- { role: infra-role-nginx, tags: nginx }
- { role: infra-role-open-ports, tags: open-ports }
- { role: infra-role-swap-file, tags: swap-file }
- { role: infra-role-certbot, tags: certbot }
- { role: infra-role-nim-waku, tags: nim-waku }
- { role: infra-role-nim-waku-sonda, tags: nim-waku-sonda, when: nim_waku_sonda_enabled }
- { role: infra-role-nginx, tags: nginx }

0 comments on commit 823567b

Please sign in to comment.