Skip to content

Commit

Permalink
add polkappl && paseo bridgehub
Browse files Browse the repository at this point in the history
  • Loading branch information
hitchhooker committed Aug 6, 2024
1 parent 49ea108 commit b09fe82
Show file tree
Hide file tree
Showing 24 changed files with 337 additions and 104 deletions.
2 changes: 2 additions & 0 deletions bkk06
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ kppl26
wppl26
wglu26
pmint26
pppl26
psobh26

[encointer]
enc14
Expand Down
2 changes: 2 additions & 0 deletions bkk07
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ kppl27
wppl27
wglu27
pmint27
pppl27
psobh27

[services]
monitor
Expand Down
4 changes: 2 additions & 2 deletions group_vars/polkadot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ default_database_path: /opt/polkadot/chains
default_download_base_url: https://github.com/paritytech/polkadot-sdk/releases/download/
default_download_url: '{{ default_download_base_url }}{{ default_client_version
}}/polkadot'
default_download_url_execute: '{{ default_download_base_url }}polkadot-v{{ default_client_version
default_download_url_execute: '{{ default_download_base_url }}{{ default_client_version
}}/polkadot-execute-worker'
default_download_url_prepare: '{{ default_download_base_url }}polkadot-v{{ default_client_version
default_download_url_prepare: '{{ default_download_base_url }}{{ default_client_version
}}/polkadot-prepare-worker'
default_group: '{{ service_users[''polkadot''] }}'
default_log_level: info
Expand Down
2 changes: 0 additions & 2 deletions group_vars/proxmox_nodes.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
default_certificate_email: [email protected]

default_packages:
- sysstat
- psmisc
Expand Down
70 changes: 70 additions & 0 deletions host_vars/bkk06.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1409,3 +1409,73 @@ lxc_nodes:
- from_port: "{{ hostvars['kppl26']['default_p2p_port_wss'] }}"
to_host: "{{ hostvars['kppl26']['container_ip'] }}:{{ hostvars['kppl26']['default_p2p_port_wss'] }}"
protocol: "tcp"
- host: "pppl26"
proxmox_config:
vmid: "846"
hostname: "{{ hostvars['pppl26']['host_name'] }}"
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['pppl26']['netif'] }}"
cores: 4
memory: 16384
swap: 8192
password: "{{ default_password }}"
disk: "{{ default_storage }}:20"
mounts: '{"mp0":"{{ default_storage }}:100,mp={{ hostvars["pppl26"]["default_database_path"] }}"}'
onboot: True
unprivileged: True
validate_certs: False
description: "{{ hostvars['pppl26']['default_network'] }} {{ hostvars['pppl26']['default_node_type'] }}: {{ hostvars['pppl26']['host_name'] }}"
state: present
features:
- nesting=1
port_forwards:
- from_port: "{{ hostvars['pppl26']['ansible_port'] }}"
to_host: "{{ hostvars['pppl26']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['pppl26']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['pppl26']['default_p2p_port'] }}"
to_host: "{{ hostvars['pppl26']['container_ip'] }}:{{ hostvars['pppl26']['default_p2p_port'] }}"
protocol: "tcp"
- from_port: "{{ hostvars['pppl26']['default_p2p_port_ws'] }}"
to_host: "{{ hostvars['pppl26']['container_ip'] }}:{{ hostvars['pppl26']['default_p2p_port_ws'] }}"
protocol: "tcp"
- from_port: "{{ hostvars['pppl26']['default_p2p_port_wss'] }}"
to_host: "{{ hostvars['pppl26']['container_ip'] }}:{{ hostvars['pppl26']['default_p2p_port_wss'] }}"
protocol: "tcp"
- host: "psobh26"
proxmox_config:
vmid: "846"
hostname: "{{ hostvars['psobh26']['host_name'] }}"
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['psobh26']['netif'] }}"
cores: 4
memory: 16384
swap: 8192
password: "{{ default_password }}"
disk: "{{ default_storage }}:20"
mounts: '{"mp0":"{{ default_storage }}:100,mp={{ hostvars["psobh26"]["default_database_path"] }}"}'
onboot: True
unprivileged: True
validate_certs: False
description: "{{ hostvars['psobh26']['default_network'] }} {{ hostvars['psobh26']['default_node_type'] }}: {{ hostvars['psobh26']['host_name'] }}"
state: present
features:
- nesting=1
port_forwards:
- from_port: "{{ hostvars['psobh26']['ansible_port'] }}"
to_host: "{{ hostvars['psobh26']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['psobh26']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['psobh26']['default_p2p_port'] }}"
to_host: "{{ hostvars['psobh26']['container_ip'] }}:{{ hostvars['psobh26']['default_p2p_port'] }}"
protocol: "tcp"
- from_port: "{{ hostvars['psobh26']['default_p2p_port_ws'] }}"
to_host: "{{ hostvars['psobh26']['container_ip'] }}:{{ hostvars['psobh26']['default_p2p_port_ws'] }}"
protocol: "tcp"
- from_port: "{{ hostvars['psobh26']['default_p2p_port_wss'] }}"
to_host: "{{ hostvars['psobh26']['container_ip'] }}:{{ hostvars['psobh26']['default_p2p_port_wss'] }}"
protocol: "tcp"
70 changes: 70 additions & 0 deletions host_vars/bkk07.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -340,3 +340,73 @@ lxc_nodes:
- from_port: "{{ hostvars['mint27']['default_p2p_port_wss'] }}"
to_host: "{{ hostvars['mint27']['container_ip'] }}:{{ hostvars['mint27']['default_p2p_port_wss'] }}"
protocol: "tcp"
- host: "pppl27"
proxmox_config:
vmid: "847"
hostname: "{{ hostvars['pppl27']['host_name'] }}"
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['pppl27']['netif'] }}"
cores: 4
memory: 16384
swap: 8192
password: "{{ default_password }}"
disk: "{{ default_storage }}:20"
mounts: '{"mp0":"{{ default_storage }}:100,mp={{ hostvars["pppl27"]["default_database_path"] }}"}'
onboot: True
unprivileged: True
validate_certs: False
description: "{{ hostvars['pppl27']['default_network'] }} {{ hostvars['pppl27']['default_node_type'] }}: {{ hostvars['pppl27']['host_name'] }}"
state: present
features:
- nesting=1
port_forwards:
- from_port: "{{ hostvars['pppl27']['ansible_port'] }}"
to_host: "{{ hostvars['pppl27']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['pppl27']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['pppl27']['default_p2p_port'] }}"
to_host: "{{ hostvars['pppl27']['container_ip'] }}:{{ hostvars['pppl27']['default_p2p_port'] }}"
protocol: "tcp"
- from_port: "{{ hostvars['pppl27']['default_p2p_port_ws'] }}"
to_host: "{{ hostvars['pppl27']['container_ip'] }}:{{ hostvars['pppl27']['default_p2p_port_ws'] }}"
protocol: "tcp"
- from_port: "{{ hostvars['pppl27']['default_p2p_port_wss'] }}"
to_host: "{{ hostvars['pppl27']['container_ip'] }}:{{ hostvars['pppl27']['default_p2p_port_wss'] }}"
protocol: "tcp"
- host: "psobh27"
proxmox_config:
vmid: "847"
hostname: "{{ hostvars['psobh27']['host_name'] }}"
ostemplate: "local:vztmpl/{{ default_container_template }}"
netif: "{{ hostvars['psobh27']['netif'] }}"
cores: 4
memory: 16384
swap: 8192
password: "{{ default_password }}"
disk: "{{ default_storage }}:20"
mounts: '{"mp0":"{{ default_storage }}:100,mp={{ hostvars["psobh27"]["default_database_path"] }}"}'
onboot: True
unprivileged: True
validate_certs: False
description: "{{ hostvars['psobh27']['default_network'] }} {{ hostvars['psobh27']['default_node_type'] }}: {{ hostvars['psobh27']['host_name'] }}"
state: present
features:
- nesting=1
port_forwards:
- from_port: "{{ hostvars['psobh27']['ansible_port'] }}"
to_host: "{{ hostvars['psobh27']['container_ip'] }}:22"
protocol: "tcp"
- from_port: "{{ hostvars['psobh27']['zabbix_ext_port'] }}"
to_host: "{{ hostvars['monitor']['container_ip'] }}:10050"
protocol: "tcp"
- from_port: "{{ hostvars['psobh27']['default_p2p_port'] }}"
to_host: "{{ hostvars['psobh27']['container_ip'] }}:{{ hostvars['psobh27']['default_p2p_port'] }}"
protocol: "tcp"
- from_port: "{{ hostvars['psobh27']['default_p2p_port_ws'] }}"
to_host: "{{ hostvars['psobh27']['container_ip'] }}:{{ hostvars['psobh27']['default_p2p_port_ws'] }}"
protocol: "tcp"
- from_port: "{{ hostvars['psobh27']['default_p2p_port_wss'] }}"
to_host: "{{ hostvars['psobh27']['container_ip'] }}:{{ hostvars['psobh27']['default_p2p_port_wss'] }}"
protocol: "tcp"
3 changes: 0 additions & 3 deletions host_vars/ksm24.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ pinned_service: False

default_telemetry_name: "Rotko Networks - {{ host_name.split('.')[0] }} {{ default_node_type | capitalize }}"
default_public_dns: "{{ host_name }}"
default_public_dns_lb: "kusama.rotko.net"
default_public_dns_ibp: "rpc.ibp.network"
default_public_dns_dotters: "rpc.dotters.network"
default_ibp_repository: "[email protected]:GATOTECH-LTD/ibp-ssl"
default_dotters_repository: "[email protected]:senseless/dotters-ssl"
default_network: kusama
Expand Down
26 changes: 26 additions & 0 deletions host_vars/pppl26.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
ansible_host: "160.22.181.181"
container_ip: "192.168.76.18" # people polkadot 18
ansible_port: "2846"
host_name: "pppl26.rotko.net"
host_timezone: "Asia/Bangkok"
netif: '{"net0":"name=eth0,gw={{ default_nat_network_forward_cidr.split("/")[0] }},ip={{ default_host_ip }}/16,bridge={{ default_nat_device }}"}'
role: "cumulus"
pinned_service: True

default_telemetry_name: "Rotko Networks - {{ host_name.split('.')[0] }} {{ default_node_type | capitalize }}"
default_public_dns: "{{ host_name }}"
default_network: "people-polkadot"
default_chain_spec: "{{ default_base_path }}/people-polkadot.json"
default_chain_spec_dl_url: "https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/cumulus/parachains/chain-specs/people-polkadot.json"
default_relay_rpc: "ws://{{ hostvars['dot26']['container_ip'] }}:{{ hostvars['dot26']['default_rpc_port'] }}"
default_relay_rpc_fallback: "ws://{{ hostvars['dot24']['container_ip'] }}:{{ hostvars['dot24']['default_rpc_port'] }}"
default_database: "paritydb"
default_node_type: "endpoint"
default_p2p_port: 33846
default_p2p_port_ws: 34846
default_p2p_port_wss: 35846
default_rpc_port: 9846
default_secure_rpc_port: 42846
default_prom_port: 7846
zabbix_ext_port: 10846
26 changes: 26 additions & 0 deletions host_vars/pppl27.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
ansible_host: "160.22.181.181"
container_ip: "192.168.77.18" # people polkadot 28
ansible_port: "2847"
host_name: "pppl27.rotko.net"
host_timezone: "Asia/Bangkok"
netif: '{"net0":"name=eth0,gw={{ default_nat_network_forward_cidr.split("/")[0] }},ip={{ default_host_ip }}/16,bridge={{ default_nat_device }}"}'
role: "cumulus"
pinned_service: True

default_telemetry_name: "Rotko Networks - {{ host_name.split('.')[0] }} {{ default_node_type | capitalize }}"
default_public_dns: "{{ host_name }}"
default_network: "people-polkadot"
default_chain_spec: "{{ default_base_path }}/people-polkadot.json"
default_chain_spec_dl_url: "https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/cumulus/parachains/chain-specs/people-polkadot.json"
default_relay_rpc: "ws://{{ hostvars['dot26']['container_ip'] }}:{{ hostvars['dot26']['default_rpc_port'] }}"
default_relay_rpc_fallback: "ws://{{ hostvars['dot24']['container_ip'] }}:{{ hostvars['dot24']['default_rpc_port'] }}"
default_database: "paritydb"
default_node_type: "endpoint"
default_p2p_port: 33847
default_p2p_port_ws: 34847
default_p2p_port_wss: 35847
default_rpc_port: 9847
default_secure_rpc_port: 42847
default_prom_port: 7847
zabbix_ext_port: 10847
27 changes: 27 additions & 0 deletions host_vars/psobh26.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
ansible_host: "160.22.181.181"
container_ip: "192.168.76.66"
ansible_port: "2625"
host_name: "pbr26.rotko.net"
host_timezone: "Asia/Bangkok"
netif: '{"net0":"name=eth0,gw={{ default_nat_network_forward_cidr.split("/")[0] }},ip={{ default_host_ip }}/16,bridge={{ default_nat_device }}"}'
role: "cumulus"
pinned_service: True

default_telemetry_name: "Rotko Networks - {{ host_name.split('.')[0] }} {{ default_node_type | capitalize }}"
default_public_dns: "{{ host_name }}"
default_network: "bridge-hub-polkadot"
default_chain_spec: "{{ default_base_path }}/bridge-hub-paseo.raw.json"
default_chain_spec_dl_url: "https://raw.githubusercontent.com/paseo-network/runtimes/main/chain-specs/bridge-hub-paseo.raw.json"
default_relay_rpc: "ws://{{ hostvars['dot26']['container_ip'] }}:{{ hostvars['dot26']['default_rpc_port'] }}"
default_relay_rpc_fallback: "ws://{{ hostvars['dot23']['container_ip'] }}:{{ hostvars['dot23']['default_rpc_port'] }}"
default_database: rocksdb
default_node_type: "endpoint"
default_p2p_port: 33925
default_p2p_port_ws: 34925
default_p2p_port_wss: 35925
default_rpc_port: 9925
default_secure_rpc_port: 42925
default_prom_port: 7925
zabbix_ext_port: 10925

27 changes: 27 additions & 0 deletions host_vars/psobh27.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
ansible_host: "160.22.181.181"
container_ip: "192.168.77.66"
ansible_port: "2925"
host_name: "psobh26.rotko.net"
host_timezone: "Asia/Bangkok"
netif: '{"net0":"name=eth0,gw={{ default_nat_network_forward_cidr.split("/")[0] }},ip={{ default_host_ip }}/16,bridge={{ default_nat_device }}"}'
role: "cumulus"
pinned_service: True

default_telemetry_name: "Rotko Networks - {{ host_name.split('.')[0] }} {{ default_node_type | capitalize }}"
default_public_dns: "{{ host_name }}"
default_network: "bridge-hub-polkadot"
default_chain_spec: "{{ default_base_path }}/bridge-hub-paseo.raw.json"
default_chain_spec_dl_url: "https://raw.githubusercontent.com/paseo-network/runtimes/main/chain-specs/bridge-hub-paseo.raw.json"
default_relay_rpc: "ws://{{ hostvars['dot26']['container_ip'] }}:{{ hostvars['dot26']['default_rpc_port'] }}"
default_relay_rpc_fallback: "ws://{{ hostvars['dot23']['container_ip'] }}:{{ hostvars['dot23']['default_rpc_port'] }}"
default_database: rocksdb
default_node_type: "endpoint"
default_p2p_port: 33925
default_p2p_port_ws: 34925
default_p2p_port_wss: 35925
default_rpc_port: 9925
default_secure_rpc_port: 42925
default_prom_port: 7925
zabbix_ext_port: 10925

5 changes: 2 additions & 3 deletions host_vars/wbr13.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ default_public_dns: "{{ host_name }}"
default_network: "bridge-hub-westend"
default_relay_rpc: "ws://{{ hostvars['wnd26']['container_ip'] }}:{{ hostvars['wnd26']['default_rpc_port'] }}"
default_relay_rpc_fallback: "ws://{{ hostvars['wnd23']['container_ip'] }}:{{ hostvars['wnd23']['default_rpc_port'] }}"
default_database: paritydb
default_database: rocksdb
default_syncmode: fast-unsafe
default_node_type: "bootnode"
default_pruning: 256
default_syncmode: warp
# default_syncmode: warp
default_p2p_port: 33563
default_p2p_port_ws: 34563
default_p2p_port_wss: 35563
Expand Down
5 changes: 2 additions & 3 deletions host_vars/wch13.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ default_public_dns: "{{ host_name }}"
default_network: "collectives-westend"
default_relay_rpc: "ws://{{ hostvars['wnd26']['container_ip'] }}:{{ hostvars['wnd26']['default_rpc_port'] }}"
default_relay_rpc_fallback: "ws://{{ hostvars['wnd23']['container_ip'] }}:{{ hostvars['wnd23']['default_rpc_port'] }}"
default_database: paritydb
default_database: rocksdb
default_syncmode: fast-unsafe
default_node_type: "bootnode"
default_pruning: 256
default_syncmode: warp
# default_syncmode: warp
default_p2p_port: 33593
default_p2p_port_ws: 34593
default_p2p_port_wss: 35593
Expand Down
4 changes: 2 additions & 2 deletions host_vars/wmint14.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ default_public_dns: "{{ host_name }}"
default_network: "asset-hub-westend"
default_relay_rpc: "ws://{{ hostvars['wnd26']['container_ip'] }}:{{ hostvars['wnd26']['default_rpc_port'] }}"
default_relay_rpc_fallback: "ws://{{ hostvars['wnd23']['container_ip'] }}:{{ hostvars['wnd23']['default_rpc_port'] }}"
default_database: paritydb
default_database: rocksdb
default_syncmode: fast-unsafe
default_node_type: "bootnode"
default_pruning: 256
default_syncmode: warp
# default_syncmode: warp
default_p2p_port: 33534
default_p2p_port_ws: 34534
Expand Down
3 changes: 0 additions & 3 deletions host_vars/wnd26.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ pinned_service: True

default_telemetry_name: "Rotko Networks - {{ host_name.split('.')[0] }} {{ default_node_type | capitalize }}"
default_public_dns: "{{ host_name }}"
default_public_dns_lb: "westend.rotko.net"
default_public_dns_ibp: "rpc.ibp.network"
default_public_dns_dotters: "rpc.dotters.network"
default_ibp_repository: "[email protected]:GATOTECH-LTD/ibp-ssl"
default_dotters_repository: "[email protected]:senseless/dotters-ssl"
default_network: "westend"
Expand Down
4 changes: 4 additions & 0 deletions inventory
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,21 @@ wglu16
pmint16
wcore26
kcore26
pppl26
kppl26
wppl26
wglu26
pmint26
wcore27
kcore27
pppl27
kppl27
wppl27
wglu27
pmint27
mint27
psobh26
psobh27

[encointer]
enc14
Expand Down
4 changes: 2 additions & 2 deletions roles/setup_install_cumulus/handlers/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

- name: Symlink Cumulus release
ansible.builtin.file:
src: "{{ default_base_path }}/cumulus-v{{ default_client_version }}"
src: "{{ default_base_path }}/{{ default_client_version }}"
dest: "{{ default_base_path }}/cumulus"
force: True
state: link
Expand All @@ -21,7 +21,7 @@

- name: Symlink binary executable
ansible.builtin.file:
src: "{{ default_base_path }}/cumulus-v{{ default_client_version }}"
src: "{{ default_base_path }}/{{ default_client_version }}"
dest: "/usr/local/bin/cumulus"
force: True
state: link
Expand Down
Loading

0 comments on commit b09fe82

Please sign in to comment.